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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access