Q. What is the preferred way to handle an object's events in Java 2? (Solved)

1. Override the object's handleEvent( ) method.

2. Add one or more event listeners to handle the events

3. Have the object override its process Event ( ) methods.

4. Have the object override its dispatch Event ( ) methods.

  • b. Add one or more event listeners to handle the events
Subscribe Now

Get All Updates & News