Title: Describe nested and inner classes.
Course: Java Programming (Oracle) (10055) > Section: Understanding Methods and Classes

Description should include the following:

- They are also referred to as anonymous inner classes because they can be declared within the body of an outer class and have no name.
- Such classes are used primarily for event handling.
- An inner class object is allowed to directly access all the variables and methods of the outer class object that defined it.
- An inner class defined in a method is allowed to access directly all the instance variables and methods of the outer class object that defined it and any final local variables in the method.