This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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...
Have you checked out Aspose?
subject: Thread signatures help please
It's not a secret anymore!