Java Basic


  1. Which of these methods is used to obtain the object that generated a WindowEvent?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    getMethod()


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











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    TextEvent defines a single integer constant TEXT_VALUE_CHANGED.



  1. Which of these methods can be used to change location of an event?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    TranslatePoint()


  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()



  1. Which of these events is generated when the component is added or removed?











  1. View Hint View Answer Discuss in Forum

    NA

    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.