Solved

nested interface

Posted on 2016-08-16
5
36 Views
Last Modified: 2016-08-17
Hi,

What is the nested interface. What are benefits of using it. How and when we use it?
0
Comment
Question by:gudii9
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
CPColin earned 500 total points
Comment Utility
Nesting an interface inside another interface or class is just a way to add additional information to its name. For example, nesting the interface SomeInterface inside the class SomeClass makes the name of the interface SomeClass.SomeInterface. There's nothing more to it than that.
0
 
LVL 7

Author Comment

by:gudii9
Comment Utility
creating instance of nested class and nested interface seems to be completely different again
0
 
LVL 14

Expert Comment

by:CPColin
Comment Utility
In what way? What are you asking?
0
 
LVL 7

Author Comment

by:gudii9
Comment Utility
http://www.javatpoint.com/nested-interface

we seem to implement a class which implements that interface to use it

where as for nested classes we can directly refer as below from outer.inner then call the method
http://www.javatpoint.com/static-nested-class
0
 
LVL 14

Expert Comment

by:CPColin
Comment Utility
Other experts have suggested that you avoid that site, because of its general low quality. I suggest the same. In the meantime, what are you actually asking about this stuff? I can't answer your question if you don't type any question marks.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countHi challenge 25 84
array6 challenfge 6 62
Books that can get me started on JAVA 2 52
java set up 1 45
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now