1.

Which of these interfaces handles the event when a component is added to a container?(a) ComponentListener(b) ContainerListener(c) FocusListener(d) InputListenerThe question was posed to me in an international level competition.My doubt stems from Event Listeners Interfaces in portion Event Handling of Java

Answer» CORRECT ANSWER is (b) CONTAINERLISTENER

To EXPLAIN I would say: The ContainerListener defines methods to recognize when a component is ADDED to or removed from a container.


Discussion

No Comment Found

Related InterviewSolutions