ACTUAL Exam Questions and CORRECT
Answers
Class members consist of __________, __________, and __________. - CORRECT
ANSWER - named constants, variable declarations, and methods
default constructor - CORRECT ANSWER - a constructor without parameters
Constructors have the same name as the __________. - CORRECT ANSWER - class
new operator - CORRECT ANSWER - used to allocate memory for the instance variables
of an object of a class
inheritance relationship - CORRECT ANSWER - is-a relationship
syntax for defining a new class Parakeet based on the superclass Bird - CORRECT
ANSWER - class Parakeet extends Bird { }
A subclass can directly access __________. - CORRECT ANSWER - public members of a
subclass
What type of inheritance does Java support? - CORRECT ANSWER - single inheritance
An abstract class can contain __________. - CORRECT ANSWER - abstract and non-
abstract methods
An abstract method __________. - CORRECT ANSWER - has no body