Explain about local interfaces.



Explain about local interfaces...

Answer / Aditya Shakya

Local Interfaces in Java are interfaces that are declared within a class. They are not public, and they can only be accessed within the declaring class. Local interfaces are used to improve the encapsulation of classes by hiding their methods from other classes outside the package. Unlike regular interfaces, local interfaces cannot extend other interfaces or implement other classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

how we can implement interface in jsp ?

2 Answers   Google,


What is difference between object state and behavior?

1 Answers  


What modifiers may be used with an interface declaration?

1 Answers  


wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,


Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an user when he enter wrong credentials(uname&password) more than 3 times.take the username and passowrd in a bean no need to conned Db kindly provide me sample application code or and ideas or links or tutorials plzzzzz urgent for me thanks in advance...

2 Answers   NSN,


Brief description about local interfaces?

1 Answers  


What is private static final long serialVersionUID = 1L;

3 Answers   Google,


What is serialization and de-serialization ?

5 Answers  


What’s jboss cache in short?

1 Answers  


What is the difference between RMI and Corba?

1 Answers   Infotech,


Dear freinds... I want to know how to write self mapping for a table using hibernate?

1 Answers   Cap Gemini,


Can we define constructors in Servlet?

3 Answers   Accenture, Opus, Wipro,


Categories