This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes Marcus exam 3 # 59 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Marcus exam 3 # 59" Watch "Marcus exam 3 # 59" New topic
Author

Marcus exam 3 # 59

Stewart Henry
Greenhorn

Joined: Jun 01, 2001
Posts: 4
Question is:

Broke up the last line to fix the scrolling .. Jane
I only choose option 1 because, to me, statement 4 does not make any sense. I know that you can construct a new MouseEvent with a constructor that takes a parameter as the time of the event. I don't know how to extract anything from a constructor. I think that if you want the time of the click you should call getWhen()
in the MouseEvent.
Also the explanation seems to be wrong. Perhaps this is a typo, or it is getting really late for me.

[This message has been edited by Jane Griscti (edited October 04, 2001).]
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Stewart,
You may be right. You can get the time of the event using getWhen(). Perhpas Marcus meant to point out that the time of the event is passed to the MouseEvent object when it is created.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
Janes assumption is correct, my question is misleading. How about this for a modified option 4
4) The time of a MouseEvent can be extracted using the getWhen method
What do you think?
Marcus
------------------
http://www.jchq.net Mock Exams, FAQ, Tutorial, Links, Book reviews
=================================================
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 exam 3 # 59
 
Similar Threads
Marcus mock 3 No.59
Marcus Green Exam #3, Question 59
Marcus Mock #59
Marcus green exam 3
Mock exam