Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 65
  • 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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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