Considering the event processing classes, what is the advantage of extending an adaptor class compared to implementing an interface?
A) Adaptors save the programmer from having to create a collection of empty-bodied methods
B) Adaptors save the programmer from having to create inner classes
C) Adaptors can be used even when interfaces cannot
D) Adaptors are more efficient at run time
E) none of the above
Correct Answer:
Verified
Q2: It is possible to sort an array
Q9: A polymorphic reference can refer to different
Q25: A JSlider provides a list of String
Q26: Which of the following statements is completely
Q29: What is the efficiency of binary search?
A)
Q32: What is printed by the following code?
public
Q33: Which of these methods will sort an
Q34: What is printed?
public class Inherit
{
abstract class Figure
{
void
Q35: Although insertion sort and selection sort have
Q53: To swap the 3ʳᵈ and 4ᵗʰ elements
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents