this is the code .
int x=99;
if(x++==x){
System.out.println("x++==x : "+x);//line1
}
x=99;
if(++x==x){
System.out.println("++x==x : "+x); //line2
}
x=99;
if(x==x++){
System.out.println("x==x++ : "+x); //line3
}
x=99;
if(x==++x){
System.out.println("x==++x : "+x); //line4
}
x=99;
if(++x==++x){
System.out.println("++x==++x : "+x); //line5
}
x=99;
if(x++==x++){
System.out.println("x++==x++ : "+x); //line 6
}
x=99;
if(++x==x++){
System.out.println("++x==x++ : "+x); // line7
}
x=99;
if(x++==++x){
System.out.println("x++==++x : "+x); // line 8
when i compile and run this code i got below out put.
++x==x : 100
x==x++ :100
++x==x++ :101
this output belongs to line 2,3 and 7.I want to know what happen to other lines, why they haven't output.