A) memory shuffling
B) system restore
C) garbage collection
D) memory sweeping
Correct Answer
verified
Multiple Choice
A) enumerated
B) enum type
C) ENUM
D) enum
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) are actually creating a special kind of class.
B) do not enclose the enum constants in quotation marks.
C) should use the standard convention of writing the enum constants in uppercase.
D) All of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) after the access specifier and field's data type.
B) after the access specifier and before the field's data type.
C) after the field name.
D) in brackets, before the field's data type.
Correct Answer
verified
Multiple Choice
A) it must be the first statement in the constructor making the call.
B) it can be anywhere in the constructor making the call.
C) it must be the last statement in the constructor making the call.
D) You cannot use the this variable in a constructor call.
Correct Answer
verified
Multiple Choice
A) null.
B) 0.
C) void.
D) static.
Correct Answer
verified
Multiple Choice
A) OAK
B) Tree.OAK
C) 0
D) 1
Correct Answer
verified
Multiple Choice
A) Class, Recyclability, Collaborations.
B) Class, Redundancy, Collections.
C) Class, Responsibilities, Collaborations.
D) Code, Reuse, Constancy.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) the ordinal method
B) the ==, >, and < operators
C) the equals and compareTo methods
D) the moreThan, lessThan, and equalsTo methods
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) writing a method that does too much processing.
B) writing a program that is too large to fit in memory.
C) having two or more methods with the same name, but different signatures.
D) having two or more methods with the same signature.
Correct Answer
verified
Multiple Choice
A) This is a public method that accepts a Stock object as its argument and returns a boolean value.
B) This is a public method that returns a reference to a String object.
C) This is a private method that receives two objects from the Stock class and returns a boolean value.
D) This is a private method that returns a boolean value.
Correct Answer
verified
Multiple Choice
A) a copy of the field for each method in the class.
B) a copy of the field in each class object.
C) only one copy of the field in memory.
D) two reference copies of the field for each method in the class.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) simply use the enum constant in the statement.
B) use the ordinal method.
C) use the displayName method.
D) use the toString method.
Correct Answer
verified
Multiple Choice
A) a case expression.
B) an argument to a method.
C) a boolean expression.
D) All of the above.
Correct Answer
verified
Showing 21 - 40 of 40
Related Exams