Exam Questions and CORRECT Answers
Objects have two properties. One is state. What is the other? - CORRECT ANSWER -
Behavior
The state of an object is stored in _____ _____ - CORRECT ANSWER - Instance
variables
The behavior of an object is represented by ______ ______ - CORRECT ANSWER -
Instance methods
The job of a _____ is to initialize instance variables at the time an object is created. - CORRECT
ANSWER - Constructor
Nested inside a class declaration are three kinds of declarations. What are they? - CORRECT
ANSWER - Constructor declarations
Variable declarations
Method declarations
The words public and private are _____ _____ - CORRECT ANSWER - Access modifiers
A method is allowed to have _______, which represent data that will be supplied when the
method is called. - CORRECT ANSWER - Parameters
Once a class has been declared, we can create objects that belong to the class. We say that these
objects are ______ of the class. - CORRECT ANSWER - Instances
An object variable doesn't actually store an object. Instead, it stores a ______ to an object. -
CORRECT ANSWER - Reference