Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Marcus Green Exam 2, Question #22  RSS feed

 
Steve Ohi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!