File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Can i use stop() to stop the thread. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Can i use stop() to stop the thread." Watch "Can i use stop() to stop the thread." New topic

Can i use stop() to stop the thread.

Narasimha Rao B.
Ranch Hand

Joined: Aug 26, 2002
Posts: 205
In one of the mock exams, i come across the question --
Which are the methods used to stop thread execution?
Anwer -
sleep(), wait(), yield() and stop().
Now in 1.4 as stop() method is deprecated, can we expect the stop() method as one of the choice. If in the answers stop() method is one of the choice, what should i do?

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Deprecated methods will not be part of the exam.

SCJP Tipline, etc.
I agree. Here's the link:
subject: Can i use stop() to stop the thread.
Similar Threads
Deprecated methods
Does stop() method still can be used in Java2?
Thread Question
Deprecated methods
Is the answer right about this question?