It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Marcus Green Exam 2 Question 22 On threads 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 » Programmer Certification (SCJP/OCPJP)
Bookmark "Marcus Green Exam 2 Question 22 On threads" Watch "Marcus Green Exam 2 Question 22 On threads" New topic
Author

Marcus Green Exam 2 Question 22 On threads

Govinda Agarwal
Greenhorn

Joined: Sep 13, 2000
Posts: 4
Question 22)
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
The Answer given is :
Answer 22)
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
I think only 1 should be the correct answer.
Pls Help
ramani2020
Greenhorn

Joined: Sep 14, 2000
Posts: 28
I think options 1,2 and 3 are correct.
Ramani.
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
Note that the question says what CAN cause a thread to stop executing, not what always will cause a thread to stop executing.
Marcus


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Marcus Green Exam 2 Question 22 On threads
 
Similar Threads
Marcus Green mock exam - 2 #22
Marques exam 2, q 22
Marcus Green Exam 2, Question #22
Marcus Mock exam 2 Threads
Marcus Green exam 2