Multiple Choice Question

Quiz Guidelines

 

QID: 
461
Question: 

What will the following code print?

int i = 1; int j = i++;
if( (i==++j) | (i++ == j) ){ i+=j;
}
System.out.println(i);

Select 1 option

A. 3
B. 4
C. 5
D. 2
E. It will not compile.

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!