Core java issue | Selenium Forum
M
Posted on 18/12/2015
Test t1 = new Test();
Test t2 = new Test();

t1.j=t2.i=5;
t1.i=t2.j=6;

System.out.println(t1.j + " " + t2.i); //o/p --- 5 5
System.out.print(t1.j++ + " " + t2.i--); //op ---- should be 6 4 why it showing 5 5

M
Replied on 18/12/2015

System.out.println(t1.j + " " + t2.i); //o/p --- 5 5
System.out.print(t1.j++ + " " + t2.i--); //op ---- should be 6 4 why it showing 5 5
System.out.print(t1.j + " " + t2.i); //here it will show 6 4


M
Replied on 19/12/2015

Thanks for prompt reply. I understand the concept of it.