File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread signatures help please