Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 67
  • Last Modified:

nested interface

Hi,

What is the nested interface. What are benefits of using it. How and when we use it?
0
gudii9
Asked:
gudii9
  • 3
  • 2
1 Solution
 
CPColinSenior Java ArchitectCommented:
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
 
gudii9Author Commented:
creating instance of nested class and nested interface seems to be completely different again
0
 
CPColinSenior Java ArchitectCommented:
In what way? What are you asking?
0
 
gudii9Author Commented:
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
 
CPColinSenior Java ArchitectCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now