Loading…
Loading…
Ten exam-style questions on labeled and unlabeled break and continue in nested loops, break and continue inside switch, return from loops, unreachable statements and missing returns, with explanations.
Practice questions for the article Java break, continue, Labels, return and Unreachable Code.
The questions follow Java 21 rules, as on the 1Z0-830 exam. For every break or continue, first decide which statement it targets, then trace. Aim for at least 8 out of 10 before moving on.
Quiz path: step 17. Take the quizzes in this order, after reading each article.
Previous quiz: while, do/while, for and for-each Loops (OCP 21)
Next quiz: Chapter 3 Review: Making Decisions (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.