No goto in Java Flow Control

Note that although goto is a reserved word in Java, it is not currently used. Java does not allow arbitrary jumps to labeled statements. However, statement labels can be used with the break and continue statements in loops, discussed later in this chapter in the section “Using break and continue in Loops.”

Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.