Home > DeveloperSection > Interviews > What is nested class?

Posted on    April-27-2015 12:42 AM

 Java Java  Nested  Class 
 1 Answer(s)
  575  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    April-27-2015 12:42 AM

A class which is declared inside another class is known as nested class.
 There are 4 types of nested class member:
1)inner class
2) local inner class
3)anonymous inner class and 
4)static nested class.

Modified On Apr-27-2015 12:45:09 AM

Don't want to miss updates? Please click the below button!

Follow MindStick