A) it will prepare the object for garbage collection.
B) it cannot be accessed from outside its class.
C) it cannot be overloaded.
D) it cannot be overridden.
Correct Answer
verified
Multiple Choice
A) real classes.
B) instance classes.
C) implementable classes.
D) concrete classes.
Correct Answer
verified
Multiple Choice
A) An advantage of inheritance over interfaces is that only inheritance provides the is-a relationship.
B) Objects of any subclass of a class that implements an interface can also be thought of as objects of that interface type.
C) When a method parameter is declared with a subclass or interface type,the method processes the object passed as an argument polymorphically.
D) All objects have the methods of class Object.
Correct Answer
verified
Multiple Choice
A) final methods allow inlining the code.
B) final methods and classes prevent further inheritance.
C) final methods are static.
D) final methods can improve performance.
Correct Answer
verified
Multiple Choice
A) bold.
B) italics.
C) a diamond.
D) there is no convention of the UML to denote abstract classes-they are listed just as any other class.
Correct Answer
verified
Multiple Choice
A) public int method1() ;
B) public int abstract method1() ;
C) public abstract int method1() ;
D) public int nonfinal method1() ;
Correct Answer
verified
Multiple Choice
A) program in the general.
B) program in the specific.
C) absorb attributes and behavior from previous classes.
D) hide information from the user.
Correct Answer
verified
Multiple Choice
A) uses
B) implements
C) defines
D) extends
Correct Answer
verified
Showing 21 - 28 of 28
Related Exams