What do you mean by inner class in java? Explain

It is a class that is a member of another class.

There are 4 types of inner classes:

  • Nested Inner class
  • Method Local inner classes
  • Anonymous inner classes
  • Static nested classes

Suggest An Answer

No suggestions avaliable!

Related Interview Questions