A) italics.
B) carets.
C) guillemets.
D) bold.
Correct Answer
verified
Multiple Choice
A) because the subclass object has an object of its superclass.
B) because the subclass object is an object of its superclass.
C) only when the superclass is abstract.
D) only when the superclass is concrete.
Correct Answer
verified
Multiple Choice
A) final.
B) concrete.
C) abstract.
D) polymorphic.
Correct Answer
verified
Multiple Choice
A) early binding.
B) non-binding.
C) on-time binding.
D) late binding.
Correct Answer
verified
Multiple Choice
A) A class that implements two interfaces.
B) A class that inherits from two classes.
C) A class that inherits from one class,and implements an interface.
D) All of the above are possible.
Correct Answer
verified
Multiple Choice
A) 0
B) 1
C) 2
D) any number of
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) 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) public.
B) interface.
C) abstract.
D) final.
Correct Answer
verified
Multiple Choice
A) execution.
B) compilation.
C) programming.
D) debugging.
Correct Answer
verified
Multiple Choice
A) real classes.
B) instance classes.
C) implementable classes.
D) concrete classes.
Correct Answer
verified
Multiple Choice
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) getClass.
B) getInformation.
C) objectClass.
D) objectInformation.
Correct Answer
verified
Multiple Choice
A) forces classes that implement it to declare all the interface methods.
B) can be used in place of an abstract class when there is no default implementation to inherit.
C) is declared in a file by itself and is saved in a file with the same name as the interface followed by the .java extension.
D) can be instantiated.
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) abstract superclasses may contain data.
B) abstract superclasses may not contain implementations of methods.
C) abstract superclasses must declare all methods as abstract.
D) abstract superclasses must declare all data members not given values as abstract.
Correct Answer
verified
Multiple Choice
A) A subclass reference cannot be assigned to a superclass variable and a superclass reference cannot be assigned to a subclass variable.
B) A subclass reference can be assigned to a superclass variable and a superclass reference can be assigned to a subclass variable.
C) A superclass reference can be assigned to a subclass variable,but a subclass reference cannot be assigned to a superclass variable.
D) A subclass reference can be assigned to a superclass variable,but a superclass reference cannot be assigned to a subclass variable.
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) Method originalMethod cannot be overridden in class C-once it has been implemented in concrete class B,it is implicitly final.
B) Method originalMethod must be overridden in class C,or a syntax error will occur.
C) If method originalMethod is not overridden in class C but is called by an object of class C,an error occurs.
D) None of the above.
Correct Answer
verified
Multiple Choice
A) a method in an abstract class.
B) a private method.
C) a method declared in a final class.
D) static method.
Correct Answer
verified
Showing 1 - 20 of 25
Related Exams