Computer Science, asked by shikhafg6085, 1 year ago

What is inner class?Describe the uses with suitable example?

Answers

Answered by sharmaakash12186
2
There are two types of nested classes non-static and static nested classes.The non-static nested classes are also known as inner classes. A class created within class and outside method. A class created for implementing interface or extending class. Its name is decided by the java compiler.
Answered by dashjyot24
0
Inner class means one class which is a member of another class. There are basically four types of inner classes in java.

1) Nested Inner class
2) Method Local inner classes
3) Anonymous inner classes
4) Static nested classes

Similar questions