Self-Review Exercises
4.1
Fill in the blanks in each of the following statements:
-
All programs can be written in terms of three types of control structures: , and .
-
The statement is used to execute one action when a condition is true and another when that condition is false.
-
Repeating a set of instructions a specific number of times is called repetition.
-
When it’s not known in advance how many times a set of statements will be repeated, a(n) value can be used to terminate the repetition.
-
The structure is built into Java; by default, statements execute in the order they appear.
-
Instance variables of types
char
,byte
,short
,int
,long
, float ...
Get Java How to Program (early objects), 9/e 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.