This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Deprecated Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Deprecated Method" Watch "Deprecated Method" New topic
Author

Deprecated Method

Praveen Ponna
Greenhorn

Joined: Nov 26, 2005
Posts: 11
I came across this question in one of the mock exams, but I feel the answer must change for the newer version of SCJP (JDK 1.4 and newer).



and the answer is given as


abcd



But as of JDK 1.4 stop() is deprecated method.
So given the above question should the answer be acd ?



Thanks!
[ February 11, 2006: Message edited by: PraveenPonna ]

scjp1.4
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
stop is a deprecated method, but notice that the question asks which of these methods may stop a thread from executing instead of asking which of these methods will stop a thread from executing. Even if a method is deprecated, it may still work.
[ February 11, 2006: Message edited by: Keith Lynn ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deprecated Method
 
It's not a secret anymore!