What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?
One more advantage: As you know that Java doesn't support multiple inheritance, so if you use "Thread" kinda class as anonymous class then the class still has one space left for any other class to extend.