jQuery in Action, 3rd edition
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread signatures help please" Watch "Thread signatures help please" New topic

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.

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:
and of course, the object methods:


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

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
jQuery in Action, 3rd edition