What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?
i use anonymous objects for calling new Threads..
new Thread(new Runnable() { public void run() { // you code } }).start();