All > Technology > Programming > Java
A class created without a class name. Such a class will be an sub class or an implementation of an interface, and is usually created as an actual argument or returned as a method result. For instance
quitButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ System.exit(0); } });
- Browse Related Terms: anonymous class, API, application programming interface (API), core class, Instance, instantiation, JFC, NEW, new operator, no-arg constructor, non-static nested class, object construction, search path, throw, type
Also listed in: