Section 4.4 Control Structures

• Normally, statements in a program are executed one after the other in the order in which they’re written. This process is called sequential execution (p. 103).

• Various Java statements enable you to specify that the next statement to execute is not necessarily the next one in sequence. This is called transfer of control (p. 103).

• Bohm and Jacopini demonstrated that all programs could be written in terms of only three control structures (p. 103)—the sequence structure, the selection structure and the repetition structure.

• The term “control structures” comes from the field of computer science. The Java Language Specification refers to “control structures” as “control statements” (p. 104).

• The sequence structure ...

Get Java™ How To Program (Early Objects), Tenth 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.