Self-Review Exercise
8.1 Fill in the blanks in each of the following statements:
a) A(n) ________ imports all static members of a class.
b) String class static method ________ is similar to method System.out.printf, but re-turns a formatted String rather than displaying a String in a command window.
c) 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.
d) The public methods of a class are also known as the class’s ________ or _______.
e) A(n) ________ declaration specifies one class to import.
f) If a class declares constructors, the compiler will not create a(n) _______.
g) An object’s ________ method is called implicitly when an object appears ...
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