Basic and Advance Java Question:
Download Questions PDF

What is the purpose of the enableEvents() method in Java Programming?

Answer:

The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.

Download Java Interview Questions And Answers PDF

Previous QuestionNext Question
What is the Set interface in Java Programming?Is Java a super set of JavaScript?