Return to site

JAVA CERTIFICATION QUESTION: Break and continue in Java’s for loops

· java,ocp

Sometimes you have to simulate JVM behavior using pencil and paper.

Given the following code fragment:

What is the output? Choose one.

A. Three

B. Four

C. Five

D. Three

Four

Five

E. No output

 

 

 

 

·ꓭ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ ·uoᴉsnʅɔuoꓛ