14.1. Normal and Abrupt Completion of Statements
Every statement has a normal mode of execution in which certain computational steps are carried out. The following sections describe the normal mode of execution for each kind of statement.
If all the steps are carried out as described, with no indication of abrupt completion, the statement is said to complete normally. However, certain events may prevent a statement from completing normally:
• The break
(§14.15), continue
(§14.16), and return
(§14.17) statements cause a transfer of control that may prevent normal completion of statements that contain them.
• Evaluation of certain expressions may throw exceptions from the Java Virtual Machine (§15.6). An explicit throw
(§14.18) statement also results ...
Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition 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.