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
When you create an inner-class, you are instantiating an anonymous class that implements the interface.
In your case, The effect is the same of: public class Foo implements ActionListener
public class Foo implements ActionListener