Self-Review Exercises

  1. A.1 Fill in the blanks in each of the following statements:

    1. A(n)            begins the body of every method, and a(n)            ends the body of every method.

    2. The            statement is used to make decisions.

    3.            begins an end-of-line comment.

    4.           ,            and            are called white space.

    5.            are reserved for use by Java.

    6. Java applications begin execution at method           .

    7. Methods           ,            and            display information in a command window.

  2. A.2 State whether each of the following is true or false. If false, explain why.

    1. Comments cause the computer to print the text after the // on the screen when the program executes.

    2. All variables must be given a type when ...

Get Android How to Program, 3/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.