What is difference between Adapter class and listeners in java?
Answers
Answered by
0
The adapter class can further be sub classed as a way to override the method required .Listeners are used when you plan to utilize most of the interface methods .Providing adapter classes (a. k. a empty or default implementations of interfaces) makes introducing new methods in interfaces less painful
Similar questions