In Java , unless the inner class is declared static , a reference to an instance of an inner class carries a reference to the outer 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 .