Find the output of the program???? . . . . . class You { - TopicsExpress



          

Find the output of the program???? . . . . . class You { static int i; static void method() { System.out.println(Method in You +i); } } class Me extends You { static void method() { System.out.println(Method in Me +i); } public static void main(String args[]) { method(); You.i=1000; You.method(); method(); Me.i=500; You.method(); method(); System.out.println(i in You= +You.i); System.out.println(i in Me= +i);}}
Posted on: Wed, 23 Oct 2013 13:57:22 +0000

Trending Topics



Recently Viewed Topics




© 2015