• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Deprecated Method

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 2412
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic