1.

Which of these is superclass of WindowEvent class?(a) WindowEvent(b) ComponentEvent(c) ItemEvent(d) InputEventThe question was posed to me during a job interview.I need to ask this question from MouseEvent, TextEvent & WindowEvent Class topic in chapter Event Handling of Java

Answer» CORRECT ANSWER is (b) COMPONENTEVENT

Easiest explanation: ComponentEvent is superclass of ContainerEvent, FocusEvent, KEYEVENT, MouseEvent and WINDOWEVENT.


Discussion

No Comment Found

Related InterviewSolutions