hi,
Following is a sample of code given in chisolm mock exam.
class JMM117 {
public static void main (
String[] args) {
int i = 0, j = 9;
do {
i++;
if (j-- < i++) {break;}
} while (i < 5);
System.out.print(i + "," + j);
}}
What is the result of attempting to compile and run the program?
a. Prints: 5,4
b. Prints: 6,3
c. Prints: 6,6
d. Prints: 7,2
e. Run-time error
f. Compile-time error
g. None of the above
It Prints: 6,6
Can Anyone please explain?
Thankyou