public class Outer { String s = "Outer"; public static void main(String[] args) { new Outer().new Inner(); } class Inner { String s = "Inner"; Inner() { System.out.println(this.s); System.out.println(Outer.this.s); } } }