Multiple Choice Question

Quiz Guidelines

 

QID: 
471
Question: 

Consider the following code for the main() method:

public static void main(String[] args) throws Exception{ 
int i = 1, j = 10;
do {
if (i++ > --j) continue;
} while (i < 5);
System.out.println("i=" + i + " j=" + j);
}

What will be the output when the above code is executed?

Select 1 option

A. i=6 j=6
B. i=5 j=6
C. i=5 j=5
D. i=6 j=5
E. None of these.

Q&A Set: 

Search the Web

Custom Search

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