Java Basic


  1. FocusEvent is subclass of which of these classes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    ComponentEvent


  1. Which of these events is generated when computer gains or loses input focus?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    FocusEvent



  1. Which of these are integer constants of ComponentEvent class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The component event class defines 4 constants COMPONENT_HIDDEN, COMPONENT-MOVED, COMPONENT-RESIZE and COMPONENT-SHOWN.


  1. Which of these methods can be used to get reference to a component that was removed from a container?









  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The getChild() method returns a reference to the component that was added to or removed from the container.



  1. Which of these methods can be used to obtain the reference to the container that generated a ContainerEvent?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    getContainerEvent()