aspose file tools*
The moose likes Mock Exam Errata and the fly likes Marcus Green Exam 2, Question #22 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Marcus Green Exam 2, Question #22" Watch "Marcus Green Exam 2, Question #22" New topic
Author

Marcus Green Exam 2, Question #22

Steve Ohi
Greenhorn

Joined: Aug 02, 2000
Posts: 6
Has the stop() method been deprecated in 1.2 ?
Many thanks,
Steve

What can cause a thread to stop executing?
1) The program exits via a call to System.exit(0);
2) Another thread is given a higher priority
3) A call to the thread's stop method.
4) A call to the halt method of the Thread class

Answer 22)
Objective 7.1)
1) The program exits via a call to exit(0);
2) The priority of another thread is increased
3) A call to the stop method of the Thread class
Louise Haydu
Ranch Hand

Joined: Aug 17, 2000
Posts: 51
You are right, stop has been deprecated in Java 1.2. According to Bill Brogden's Java 2 Exam Cram (page 177, in the Java Threads Chapter under "Some Deprecated Methods") "...The use of these mehtods should not appear in the test." This statement was used in reference to the suspend, resume, and stop methods of the Thread class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Marcus Green Exam 2, Question #22
 
Similar Threads
Threads
Marcus Green exam 2
Marcus Mock exam 2 Threads
Marcus Green mock exam - 2 #22
Marcus Green Exam 2 Question 22 On threads