wood burning stoves 2.0*
The moose likes Mock Exam Errata and the fly likes Marcus green exam 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Marcus green exam 3" Watch "Marcus green exam 3" New topic
Author

Marcus green exam 3

Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 99
Question 59)
Which of the following statements are true?
1) The x,y coordinates of an instance of MouseEvent can be obtained using the getX() and getY() methods
2) The x,y coordinates of an instance of MouseEvent can be obtained using the X and Y integer fields
3) The time of a MouseEvent can be extracted using the getTime() method
4) The time of a MouseEvent can be extracted using the getWhen method
Objective 4.6)
1) The x,y coordinates of an instance of MouseEvent can be obtained using the getX() and getY() methods
4) 4) The time of a MouseEvent can be extracted using the getWhen method

If you chose option 4, referring to the mythical getTime method you have made a reasonable guess based on the normal conventions of Java. However the conventions do not always hold true. If you chose option 3 perhaps you are not as aware of the conventions as you should be.
http://www.jchq.net/tutorial/04_06Tut.htm
Is the correct answer only 1) the discussion of 4 is rather confused and I can not find any getWhen or getTime methods.

Sun Certified Java Programmer Java 2<P>Jeff Gaer
Nain Hwu
Ranch Hand

Joined: Sep 16, 2001
Posts: 139

Is the correct answer only 1) the discussion of 4 is rather confused and I can not find any getWhen or getTime methods

MouseEvent inherits getWhen() from its superclass InputEvent.
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
http://java.sun.com/j2se/1.4/docs/api/java/awt/event/MouseEvent.html
------------------

http://www.jchq.net Mock Exams, FAQ,
Tutorial, Links, Book reviews
Java 2 Exam Prep, 2nd Edition by Bill Brogden and Marcus Green
=================================================
JCHQ, Almost as good as JavaRanch
=================================================


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Marcus green exam 3
 
Similar Threads
Marcus mock 3 No.59
Marcus Mock #59
Marcus exam 3 # 59
Mock exam
Marcus Green Exam 3 Q 59