Home » JAVA Programming » Java Basic » Question
  1. Which of these methods is used to get x coordinate of the mouse?
    1. getXCoordinate()
    2. getCoordinateX()
    3. getX()
    4. getPointX()
    5. None of these
Correct Option: C

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



Your comments will be displayed only after manual approval.