class NormClass { public class NestedClass { NestedClass() { NormClass myPartner = NormClass.this; } } } class NormClass { String name; public class NestedClass { String name; NestedClass() { System.out.println("My name is " + name); // nested class name System.out.println("My partner is " + NormClass.this.name); NormClass myPartner = NormClass.this; } } }