A named interface, declared as a static member of a class, typically used for
defining methods used to access the enclosing class.
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
publicclass MainClass {
ActionListener lis = new ActionListener() {
@Override
publicvoid actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
};
publicstaticvoid main(String[] argv) {
System.out.println();
}
}