Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) position
B) location
C) ordinal
D) index
Correct Answer
verified
Multiple Choice
A) enterprise
B) possession
C) mutual relationship
D) whole-part relationship
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) They are created by placing the key word static after the access specifier in the method header.
B) It is necessary for an instance of the class to be created to execute the method.
C) They are called directly from the class.
D) They are often used to create utility classes that perform operations on data but have no need to store and collect data.
Correct Answer
verified
Multiple Choice
A) after the access specifier and the 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) the address of an object of the Rectangle class
B) the values stored in the data members of the Rectangle object
C) a graph of a rectangle
D) an object of the class Rectangle
Correct Answer
verified
Multiple Choice
A) a case expression
B) an argument to a method
C) a boolean expression
D) Any of these
Correct Answer
verified
Multiple Choice
A) nested class
B) enumerated class
C) inner class
D) helper class
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) None of these. You cannot use the this variable in a constructor call.
Correct Answer
verified
Multiple Choice
A) 0
B) -1
C) null
D) false
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) This is a private method named add that accepts and returns objects of the Stock class.
B) This is a private method named Stock that adds two objects.
C) This is a public method named add that accepts and returns references to objects in the Stock class.
D) This is a public method named Stock that adds two objects.
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) an object of that class
B) a reference to an object of that class
C) the values in the object that the method accessed
D) nothing - the return type is simply for documentation in this situation
Correct Answer
verified
Multiple Choice
A) 0
B) 1
C) 2
D) 3
Correct Answer
verified
Multiple Choice
A) the resulting operation will always be zero
B) the results will be unpredictable
C) the program will terminate
D) Java will create an object to reference the variable
Correct Answer
verified
Multiple Choice
A) objects
B) strings
C) integers
D) Boolean values
Correct Answer
verified
Showing 21 - 40 of 52
Related Exams