I am confused about the concept of interface when dealing with anonymous inner class. As far as I know that you can\'t instantiate an interface in Java, so the following sta
You are creating a class and implementing the interface when working with anonymous class.you can override the methods or implement the method inside the anonymous class
A a= new A(){
};
Here a is a reference variable of type A which is referring not to A but to an object of class which implement A who doesn't have a name