import java.lang.*; public class Outer{ int x = 100; class Inner{ int x = 200; public void check(){ System.out.println("Value of x is: "+ Outer.this.x ); } } public void check(){ new Inner().check(); } public static void main(String args[]){ new Outer().check(); } }