>

Wednesday, August 29, 2012

What is the output?

class ConditionalIf{
 
public static void main(String args[]){

int i = 1;

int j = i++;

if ((i == ++j) | (i++ == j)) {

  i += j;

}

System.out.println("i = " + i);
} }

No comments:

Post a Comment

Please post your comments. Your comments make us to write more programs for you.