What is anonymous class?
Class for which we can't create any object
Class for which we can create only one object
Class with out any body
class with out a class name but with body.
Anonymous classes are those for which there is no class name, but body will exist. You can create anonymous classes by extending a base class or by implementing an interface. Eg: for anonymous class is button click listeners in Android.
Back To Top