Does an anonymous class get created (not instantiated, but the class actually being defined/loaded) each time its enclosing method is called or are they reused? For instance:
public MyInterface getAnonymousMyInterface() {
return new MyInterface(){
public void doStuff(){
System.out.println("did stuff");
}
}
}
Will calling getAnonymousMyInterface()
create two different classes?