class Test{
static int i=10;
int j=20;
public static void main(String[] args){
Test t1=new Test();
Test t2=new Test();
t2.i=200;
t2.j=400;
System.out.println(t1.i+"......."+t1.j);
}
}
O/P : 200,20
static int i=10;
int j=20;
public static void main(String[] args){
Test t1=new Test();
Test t2=new Test();
t2.i=200;
t2.j=400;
System.out.println(t1.i+"......."+t1.j);
}
}
O/P : 200,20
No comments:
Post a Comment