Solved

nested interface

Posted on 2016-08-16
5
44 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
ID: 41758796
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
ID: 41759487
creating instance of nested class and nested interface seems to be completely different again
0
 
LVL 14

Expert Comment

by:CPColin
ID: 41759517
In what way? What are you asking?
0
 
LVL 7

Author Comment

by:gudii9
ID: 41759533
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
ID: 41759561
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Free Alternative to JIRA 4 91
session migration servlets 2 28
map related example 6 38
arguments to jar 5 17
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

861 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

24 Experts available now in Live!

Get 1:1 Help Now