In Java , unless the outer class is declared static , a reference to an instance of an inner class carries a reference to the inner class with it .
In Java , a reference to an instance of an inner class contains a reference to the inner class , unless the outer class is declared as static .