1.

Which of these events is generated when the component is added or removed?(a) ComponentEvent(b) ContainerEvent(c) FocusEvent(d) InputEventI have been asked this question during an online interview.My question is taken from ComponentEvent, ContainerEvent & FocusEvent Class in chapter Event Handling of Java

Answer»

The correct answer is (B) CONTAINEREVENT

For EXPLANATION: A ContainerEvent is generated when a component is added to or removed from a container. It has TWO INTEGER constants COMPONENT_ADDED & COMPONENT_REMOVED.



Discussion

No Comment Found

Related InterviewSolutions