Courseiva
Control Flow and LoopshardMultiple SelectObjective-mapped

1Z0-811 Control Flow and Loops Practice Question

Which THREE statements are true about the break and continue statements in Java? (Choose three.)

⚠ Common exam trap

Many candidates confuse the behavior of 'continue' (which only skips the current iteration) with 'break' (which terminates the loop), and they may forget that 'break' is also valid in switch statements, not just loops.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A labeled break can be used to exit an outer loop.

A labeled break in Java allows you to specify a label on an outer loop and then use 'break label;' to exit that outer loop directly, not just the innermost loop. This is useful for breaking out of nested loops when a condition is met in an inner loop.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A labeled break can be used to exit an outer loop.

    Why this is correct

    Correct: labeled break exits outer loop.

  • The continue statement skips the current iteration and proceeds to the next iteration.

    Why this is correct

    Correct: continue moves to next iteration.

  • The break statement terminates the innermost enclosing loop or switch.

    Why this is correct

    Correct: break exits the innermost loop/switch.

  • The continue statement can be used to exit a loop entirely.

    Why it's wrong here

    continue does not exit; it skips iteration.

  • The break statement cannot be used outside a loop.

    Why it's wrong here

    break can be used in switch outside loop.

About these practice questions

One of 481 original 1Z0-811 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.