Self-Review Exercises
-
8.1 Fill in the blanks in each of the following statements:
A(n) imports all
static
members of a class.String
classstatic
method is similar to methodSystem.out.printf
, but returns a formattedString
rather than displaying aString
in a command window.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.
The
public
methods of a class are also known as the class’s or .A(n) declaration imports one
static
member.If a class declares constructors, the compiler will not create a(n) .
An object’s ...
Get Java How To Program, Late Objects, 11th Edition 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.