145k views
3 votes
What are different types of inner classes ?

User Zyl
by
4.9k points

1 Answer

4 votes

Answer:

Inner class in Java is basically a class in a class, i.e. a member of another class.

There are 4 types of inner classes in Java.

a) Nested Inner class

b) Method local Inner class

c) Anonymous Inner class

d) Static nested class

User Jeremy Kendall
by
5.0k points