Chapter 3 T/F Review - Computer Programming
A method that gets a value from a class's field but does not change it is known as a mutator method.
False
"Shadowing" is the term used to describe how the field name is hidden by the name of a local or parameter variable.
True
A constructor is a method that is automatically called when an object is created.
True
An access specifier indicates how a class may be accessed.
True
The term "default constructor" is applied to the first constructor written by the author of the class.
False
The public access specifier for a field indicates that the field may not be accessed by statements outside the class.
False
When a local variable in an instance method has the same name as an instance field, the instance field hides the local variable.
False
A method that stores a value in a class's field or in some other way changes the value of a field is known as a mutator method.
True
The java.lang package is automatically imported into all Java programs.
True
The term "no-arg constructor" is applied to any constructor that does not accept arguments.
True