The nested class is inside its enclosing class so that it has access to its enclosing class’s members . Like other members, a nested class can be declared static (or not). A static nested class is called just that: a static nested class. A nonstatic nested class is called an inner class.