• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SCJP Threads: Here we come!

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ranchers,
u guys are great! please 4 d sake of those of us that are about to tke d scjp exams i would like to make suggest that every interested rancher should write a list of at most 7 key points to take note of when answering thread questions in scjp exam. (if u're already certified , ur contribution will be most appreciated)
Lets please make them as simple as possible. I start from 1-7. please next rancher continue for the next no.
____________________________________________________________________________
1. wait(),notify()/notifyAll() MUST be declared within synchronized code,else an IllegalMonitorState (RT) Exception is generated.
2.sleep() MUST throw InterruptedException.
3.a thread that implements runnable must declare its run method correctly(public void run()).
4.whenever start() is called twice on the same thread, an IllegalThreadStateException(RT) is thrown.
5.if the start() and run() methods are swapped in a thread, there will be compilation but no output at runtime.
6. a class that extends thread CANNOT extend another class.
7.suspend(),resume(),stop() and countstackframes ae depraecated in Java2
____________________________________________________________________________
thanks u'll,
cheers.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic