Answer Posted / selvi
Java Language rule are such that we must implement all the
methods of an interface even if we put them into empty
braces.i.e. we must override all the methods declared in
the interface.
But we can create our classes as subclasses of one of
the adapter classes, then we need to override only some of
the methods we need. i.e, An adapter classes provide empty
implementation of all methods declared in an EventListener
interface.
Is This Answer Correct ? | 191 Yes | 27 No |
Post New Answer View All Answers
What are invisible components?.
What is the purpose of tostring() method in java?
Which sorting algorithm is best in java?
What do you mean by Hash Map and Hash Table?
what is anonymous class in java?
Which types of exceptions are caught at compile time?
What are java packages?
How we can run a jar file through command prompt in java?
Discuss different types of errors that generally occur while programming.
What is the function of character?
What is method overloading in JAVA? Why is it not present in C ?
Is java util list serializable?
Difference between keyword and identifier.
Explain about map interface in java?
Why is String immutable?