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
write a program that list all permutations of ABCDEF in which A appears before B?
Why are constructors used?
What is the replace tool?
What is a boolean flag in java?
How do you implement polymorphism in our day to day life?
What is ‘is-a ‘ relationship in java?
Who developed java?
What is a module function?
What is void data type?
How does arraylist work in java?
Does set allows null in java?
What is the difference between abstract classes and interfaces?
When does an object becomes eligible for garbage collection in java?
What is an object's lock and which object's have locks in java programming?
How transient variable is different from volatile variable?