DEVFYI - Developer Resource - FYI

What is the purpose of the enableEvents() method?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

109. What is the purpose of the enableEvents() method?

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.

(Continued on next question...)

Other Interview Questions