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

  • (A) Override the object's handleEvent( ) method.
  • (B) Add one or more event listeners to handle the events
  • (C) Have the object override its process Event ( ) methods.
  • (D) Have the object override its dispatch Event ( ) methods.
πŸ’¬ Discuss
βœ… Correct Answer: (B) Add one or more event listeners to handle the events

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
236
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate