Java / Object, Class and Package
Anonymous class.
An anonymous class has no specified name declared and instantiated at the same time where it is declared. Because it has no name it can only be instantiated and used at the place of declaration. Anonymous classes either implement an interface or extend a class.
Anonymous classes are given a name by the compiler and they are treated as local inner classes.
More Related questions...