This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread signatures help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread signatures help please" Watch "Thread signatures help please" New topic
Author

Thread signatures help please

sun par
Ranch Hand

Joined: Oct 03, 2002
Posts: 257
Can anyone tell me whether it is neccessary to know the signature of methods in the Thread class for the purpose of the exam.
Thanks.


Sunita<br />SCJP 1.4
Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
Someone creditable told me yesterday

You do need to know the signatures of the Thread constructors. You
also need to know which methods can take a timeout.
The only thread methods you really need are:
sleep()
join()
run()
start()
and of course, the object methods:
wait()
notify()
notifyAll()

HTH


Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
sun par
Ranch Hand

Joined: Oct 03, 2002
Posts: 257
Thanks Alfred.
Ikechukwu Morah
Greenhorn

Joined: Nov 01, 2002
Posts: 18
How do you use the join() method in threads?
sun par
Ranch Hand

Joined: Oct 03, 2002
Posts: 257
if u use t.join() in a main method then before executing the rest of the code it will wait for the thread t's run method to terminate...
 
Don't get me started about those stupid light bulbs.
 
subject: Thread signatures help please
 
Similar Threads
Tech Word Game
subject
WA #1.....word association
Thread and Object
Thread & Synchronization