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
It allows you to create a new anonymous class that implements ActionListener because you're providing the implementation, you're just not giving it a class name.