+ 8

What is Anonymous class

11th Mar 2017, 12:38 PM
Amar Dahake
4 Answers
+ 11
Anonymous Inner class is a class which has no name and it is either a subclass of a class or an implementer of an interface. http://www.programmerinterview.com/index.php/java-questions/java-anonymous-class-example/
12th Mar 2017, 4:12 AM
Saumya
Saumya - avatar
+ 2
class without name
24th Mar 2017, 10:59 AM
Ismail pe
Ismail pe - avatar
+ 1
in the code JPanel panel = new JPanel(new String("This String is Anonymous"); the String is an example of an anonymous object
26th Mar 2017, 7:46 PM
Logan New
Logan New - avatar
- 2
Who knows, who knows
11th Mar 2017, 1:43 PM
Gleb Valev
Gleb Valev - avatar