What is the result?

Given the code fragment:
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj–) {
if (ii == jj) {
++count;
break;
}
}
System.out.print(count);
continue;
}
What is the result?
A. 011
B. 012
C. 123
D. 000

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “What is the result?

  1. public class Counti {
    public static void main(String[] args) {
    for(int ii = 0; ii 3; jj–) {
    if (ii == jj) {
    ++count;
    break;
    }

    }
    System.out.println(count);
    continue;
    }
    }

    }
    Answer : D

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.