20.1.9 Inheritance Quiz Codehs
Question: Set methods are also commonly called ________ methods and get methods are
also commonly called ________ methods.
Answer: mutator;accessor
Question: Which of the following is false?
Answer: A static method can call instance methods
directly.
Question: Which syntax imports all static members of class Math?
Answer: import static
java.lang.Math.*.
Question: Which of the following statements is false?
Answer: The BigDecimal method format receives a double argument
and returns a BigDecimal object that represents the exact value
specied.
Question: Which statement is false?
Answer: The compiler always creates a default constructor for a
class.