Java: Classes and Objects UPDATED ACTUAL Exam Questions
and CORRECT Answers
To perform an operation on an object, we _______ one of the instance methods associated with
the object. - Call
How do you call an instance method - object.methodname(arguments)
Reference variables are known as _______ variables in other programming languages. - Pointer
What value can we assign to an object variable to indicate that it doesn't currently store an
object? - null
A new object that's been created by copying an existing object is said to be a _______. - Clone
An object that's no longer accessible through any object variable is said to be _______. -
Garbage
An instance method that returns the value of an instance variable is said to be an _______. -
Accessor/Getter
An instance method that stores its parameter into an instance variable is said to be an ________.
- Mutator/Setter
An object whose instance variables cannot be changed is said to be _______. - Immutable
A mehtod that returns the contents of an object as a string should be named ______. - toString
The act of joining two strings together to form a single string is called _______. - Concatenation
and CORRECT Answers
To perform an operation on an object, we _______ one of the instance methods associated with
the object. - Call
How do you call an instance method - object.methodname(arguments)
Reference variables are known as _______ variables in other programming languages. - Pointer
What value can we assign to an object variable to indicate that it doesn't currently store an
object? - null
A new object that's been created by copying an existing object is said to be a _______. - Clone
An object that's no longer accessible through any object variable is said to be _______. -
Garbage
An instance method that returns the value of an instance variable is said to be an _______. -
Accessor/Getter
An instance method that stores its parameter into an instance variable is said to be an ________.
- Mutator/Setter
An object whose instance variables cannot be changed is said to be _______. - Immutable
A mehtod that returns the contents of an object as a string should be named ______. - toString
The act of joining two strings together to form a single string is called _______. - Concatenation