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 attention Bert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "attention Bert" Watch "attention Bert" New topic
Author

attention Bert

Sriram Chintapalli
Ranch Hand

Joined: Dec 16, 2003
Posts: 59
Hi Bert,
when we try to restart a thread(call start on a thread that has already started) the compiler just ignores it! but is it true that for the sake of the exam we have to answer it as a runtime error???(confused). Can you please throw some light on similar situations where the compiler and exam answers conflict!
I like a lot of others to give their opinions on this, but I want Berts' word too.
thanks in advance,
sriram
Satish Avadhanam
Ranch Hand

Joined: Aug 12, 2003
Posts: 697
Hey Sriram, you're right. For the sake of the exam, as far as I remember, we are supposed to answer it as error only.
Hope this helps, thanks.
Richard Quist
Ranch Hand

Joined: Feb 18, 2004
Posts: 96
API doc for the Thread class says an IllegalStateException is thrown if start() is called on a Thread that's already started.


Rich
SCJP 1.4
Yuriy Grechukhin
Ranch Hand

Joined: Jan 16, 2004
Posts: 41
Is it possible that you are catching (and ignoring)IllegalStateException or one of it's supper classes?


The sword of destiny has two blades, one of them is you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: attention Bert
 
Similar Threads
Doubt in OCP Practice Exams question
Isnt SCJP an overkill
Is SCWCD worth taking?
This thread is for topics not covered by K&B 1.4 book
Converting from hex to decimal