This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes Does stop() method still can be used in Java2? 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 » Mock Exam Errata
Bookmark "Does stop() method still can be used in Java2?" Watch "Does stop() method still can be used in Java2?" New topic
Author

Does stop() method still can be used in Java2?

Ivey Zhang
Greenhorn

Joined: Feb 01, 2001
Posts: 18
I am confused about this.
Since it's said stop() has deprecated in Java2, can we still use it?
In marcusgreen's exam2

Q22) What can cause a thread to stop executing?
One of the answers is:
A call to the thread's stop method.
Jan Volkmann
Greenhorn

Joined: Feb 01, 2001
Posts: 17
Originally posted by Ivey Zhang:
I am confused about this.
Since it's said stop() has deprecated in Java2, can we still use it?

Hi Ivey,
yes you may use it but it's strongly recommended not to do so. The reason is that there are new methods which are supposed to be "better" in whatever way. Anyway, most developing suites reject deprecated methods (i.e. in fact you can't use them). As for the jdk1.3 you can type "javac -deprecation <filename>.java" and it compiles all right. If you use deprecated methods, however, you should really know what you're doing especially when multithreading is concerned.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does stop() method still can be used in Java2?
 
Similar Threads
Oh boy !!!! Threads again.
choose one correct ans. -thread
Confusion!
Marcus Green exam 2
Insert French in Domino through JDBC