Abstract Window Toolkit (AWT) Question:

Download Job Interview Questions and Answers PDF

What is the purpose of the enableEvents() method?

AWT Interview Question
AWT Interview Question

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 AWT Interview Questions And Answers PDF

Previous QuestionNext Question
Which is the super class of all event classes?What is a convertor?