Java Basic


  1. Which of these are constants defined in WindowEvent class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    WindowEvent class defines 7 constants – WINDOW_ACTIVATED, WINDOW_CLOSED, WINDOW_OPENED, WINDOW_DECONIFIED, WINDOW_CLOSING, WINDOW_DEACTIVATED, WINDOW_ICONIFIED.


  1. Which of these methods is used to get x coordinate of the mouse?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    getX() and getY() are used to obtain X AND Y coordinates of the mouse.



  1. MouseEvent is subclass of which of these classes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    InputEvent


  1. Which of these is superclass of WindowEvent class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ComponentEvent is superclass of ContainerEvent, FocusEvent, KeyEvent, MouseEvent and WindowEvent.



  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.