Campbell Ritchie wrote:It is an anonymous class. You are creating a class maybe called Foo$1 which implements the interface. You must implement the run method in order for it to compile.
so, is it like if we are creating an anonymous class, new keyword can even be used with an interface.
can anyone explain in detail what happens if we are using a new keyword for an interface while creating an anonymous class?
Regards
Gerald.J