Questions and CORRECT Answers
Which of the following statements about abstract superclasses is true? - CORRECT
ANSWER - abstract superclasses may contain data
To exit out of a loop completely, and resume the flow of control at the next line in the method,
use _____ - CORRECT ANSWER - A break statement
Failure to prefix the superclass method name with the keyword super and a dot (.) separator
when referencing this superclass's method causes _______ - CORRECT ANSWER -
infinite recursion
Which of the following is not one of the three general types of computer languages? -
CORRECT ANSWER - Spoken languages
_______ models software in terms similar to those that people use to describe real-world objects
- CORRECT ANSWER - Object-oriented design
When a subclass constructor calls its superclass constructor, what happens if the superclass's
constructor does not assign a value to an instance variable? - CORRECT ANSWER - The
program compiles and runs because the instance variables are initialized to their default values
Which of the following is not a Java keyword? - CORRECT ANSWER - next
Arrays are: - CORRECT ANSWER - fixed-length entities
The default implementation of method clone of Object performs a____ - CORRECT
ANSWER - shallow copy