Hi,
Yes, it worked.
the anonymous class is there with {} -> return new A(){};
You may see the compiler makes A$1.class file in the path.
But when i am trying to run the given code I am getting the compilation error.
java.lang.NoClassDefFoundError: A$1
Exception in
thread "main"
I hope it can be compiled and executed only when we repalce new A$1() with A.A() in given code.
Plz confirm....
[ February 20, 2006: Message edited by: gaurav singhal ]
[ February 20, 2006: Message edited by: gaurav singhal ]
[ February 20, 2006: Message edited by: gaurav singhal ]