Answer to Question #231576 in Java | JSP | JSF for keowownfo

Question #231576

Why should we use event adapter class instead of event listener? Explain the following java terms- i) Event (ii) Listener (iii) Adapter iv) Action Listener


1
Expert's answer
2021-08-31T23:51:44-0400

a. Event adapter classes are used to implement listener interfaces.

b. i) Event: An event is the changing state of an object. Such as click of a button.

ii) Listener : A  Listener  is a method called when a user does something.

iii) Adapter: is a structural design patter which allows objects that are incompatible to collaborate.

iv)Action Listener: is responsible for handling all action events.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS