Loading…

What is anonymous class in Java?

An anonymous class is like a local class or an inner class, but without a name. You can use an anonymous class for declaring and instantiating a class simultaneously.

Suggest An Answer

No suggestions avaliable!

Latest post from Java interview questions

Ask Question