Java excercises Flashcards
1
Q
What will the following code print?
int i = 1; int j = i++; if( (i==++j) | (i++ == j) ){ i+=j; } System.out.println(i);
A
5
PSWT > Java excercises > Flashcards
What will the following code print?
int i = 1; int j = i++; if( (i==++j) | (i++ == j) ){ i+=j; } System.out.println(i);
5