1.

Which of these methods is used to get x coordinate of the mouse?(a) getX()(b) getXCoordinate()(c) getCoordinateX()(d) getPointX()The question was asked in semester exam.The query is from MouseEvent, TextEvent & WindowEvent Class topic in division Event Handling of Java

Answer»

The CORRECT OPTION is (a) getX()

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



Discussion

No Comment Found

Related InterviewSolutions