A) the address of an object of the Rectangle class
B) the values stored in the data members of the Rectangle object
C) a null value
D) an object that is contained in the class Rectangle
Correct Answer
verified
Multiple Choice
A) position
B) location
C) ordinal
D) index
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) write a method for the class that will make a field by field copy of object1 data members into object2 data members.
B) use the copy method that is a part of the Java API.
C) use the default constructor to create object2 with object1 data members.
D) use an assignment statement to make object2 a copy of object1.
Correct Answer
verified
Multiple Choice
A) you are performing a shallow copy.
B) you are performing a nested copy.
C) you are performing a deep copy.
D) a compiler error will occur.
Correct Answer
verified
Multiple Choice
A) they must be declared outside of the class.
B) they cannot refer to nonstatic members of the class.
C) they can only be called from static members of the class.
D) they can refer to only nonstatic members of the class.
Correct Answer
verified
Multiple Choice
A) public Rectangle(int len, int width)
B) public Rectangle(double len, double width)
C) public Rectangle()
D) All of the above
Correct Answer
verified
Multiple Choice
A) a reference to an object of that class
B) only the values in the object that the method accessed
C) an object of that class
D) a null reference
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) aggregate
B) inner
C) String
D) nested
Correct Answer
verified
Multiple Choice
A) the method name and the parameter list.
B) the return type, the method name, and the parameter list.
C) the size of the method in memory.
D) the return type and the method name.
Correct Answer
verified
Multiple Choice
A) "Has a"
B) Inner class
C) "Is a"
D) One-to-many
Correct Answer
verified
Multiple Choice
A) A runtime error will occur.
B) The method will display unreadable binary data on the screen.
C) The account object's toString method will be implicitly called.
D) A compiler error will occur.
Correct Answer
verified
Multiple Choice
A) enterprise
B) possession
C) mutual relationship
D) whole-part relationship
Correct Answer
verified
Multiple Choice
A) account20.getNumberOfAccounts() ;
B) SavingsAccount.getNumberOfAccounts() ;
C) getNumberOfAccounts() ;
D) None of the above
Correct Answer
verified
Multiple Choice
A) enum.PINE
B) PINE
C) Tree.PINE
D) enum.Tree.PINE
Correct Answer
verified
Multiple Choice
A) nested class.
B) enumerated class.
C) inner class.
D) helper class.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) create your own data type.
B) specify the values that belong to that type.
C) Both A and B
D) Neither A nor B
Correct Answer
verified
Showing 1 - 20 of 40
Related Exams