what is nested class in java?



what is nested class in java?..

Answer / Bhupendra Sharma

Nested classes in Java are inner classes that are declared within another class. There are two types of nested classes: static nested classes (can be accessed without an instance of the outer class) and non-static nested classes (must be associated with an instance of the outer class).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the default initialized value of String type variable?

4 Answers  


What is the Scope of Static Variable?

1 Answers   Verifone,


What is type safety in java?

1 Answers  


What are drawbacks of singleton class?

1 Answers  


what are depricated methods ?

5 Answers   Satyam,


There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation?

6 Answers   KPIT,


what is main purpose of abstract class?

7 Answers  


Is age discrete or continuous?

1 Answers  


What is Applet Flickering ?

1 Answers   Infosys, Persistent,


How to sort the elements in HashMap

3 Answers   Ness Technologies,


What is identifier in java?

1 Answers  


what are the rules to use try catch finally?

1 Answers   Satyam, UJ,


Categories