hi,
Thankyou chandra for helping me with the study process and other queries as well.I have one question regarding the chisolm mock exam.See the code below:
class JMM113 {
public static void main (
String[] args) {
int i = 0, j = 0, k = 0;
do while (i++ < 3)
System.out.print(k++);
while (j++ < 3);
}}
What is the result of attempting to compile and run the program?
a. Prints: 0001
b. Prints: 012
c. Prints: 012012
d. Prints: 012345
e. Prints: 001122
f. Prints: 1112
g. Prints: 111222
h. Prints: 121212
i. Run-time error
j. Compile-time error
k. None of the above
The answer is Prints: 012
Can you please explain?