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
posted
0
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.