Question 15 / 297:  What is the result of compiling and running the following code?
public class LoopTest {

public static void goLoop(int a) {

outside: for (int i = 0; i < 3; i++) {

inside: for (int j = 1; j < 3; j++) {

System.out.print(j);

if (a > 5) {

continue outside;

}

}

}

}

public static void main(String args[]) {

LoopTest.goLoop(15);

}

}

A  121212
B  No output is produced
C  Compile Error
D  Runtime exception is thrown
E  111
<< First < Previous Next > Last >>
Exam Home Page
Ask
Hope Percle
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>