If the class being created is a local class (it is declared inside of a method inside of another class): If the class that is being created is defined in a static context (either the method it is defined in is static or the class is declared as static) then the instance being created is a static inner class and there is no enclosing instance.