Self-Review Exercise

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

    1. The public methods of a class are also known as the class’s            or           .

    2. String class static method            is similar to method System.out.printf, but returns a formatted String rather than displaying a String in a command window.

    3. If a method contains a local variable with the same name as one of its class’s fields, the local variable            the field in that method’s scope.

    4. Keyword            specifies that a variable is not modifiable.

    5. The            states that code should be granted only the amount of privilege and access that it needs to accomplish its designated task.

    6. If a class declares constructors, the compiler will not create a(n) ...

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.