Which of these methods is used to get x coordinate of the mouse?
A. getX()
B. getXCoordinate()
C. getCoordinateX()
D. getPointX()
Answer:A
Which of these methods is used to get x coordinate of the mouse?
A. getX() B. getXCoordinate() C. getCoordinateX() D. getPointX()
Explanation: getX() and getY() are used to obtain X AND Y coordinates of the mouse.