Home » JAVA Programming » Java Basic » Question
  1. Which of these events is generated when the component is added or removed?
    1. InputEvent
    2. FocusEvent
    3. ComponentEvent
    4. ContainerEvent
    5. None of these
Correct Option: D

A ContainerEvent is generated when a component is added to or removed from a container. It has two integer constants COMPONENT_ADDED & COMPONENT_REMOVED.



Your comments will be displayed only after manual approval.