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 Problem : Threads ; Reference Cert Pal 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 "Problem : Threads ; Reference Cert Pal" Watch "Problem : Threads ; Reference Cert Pal" New topic
Author

Problem : Threads ; Reference Cert Pal

Sahil Kapoor
Ranch Hand

Joined: Sep 12, 2009
Posts: 316
Consider the following program from cert pal




Options (two of them) :

1 a b Runtime error
2 None of the above

Answer :- 1

But i chosed 2 because i thought its an Exception and not an error .

What to chose in actual SCJP exam in such cases ???


SCJP 6.0 96%

(Connecting the Dots ....)
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

well,you cant call the start method more than one time on the same thread object.

Sahil wrote:
But i chosed 2 because i thought its an Exception and not an error .
What to chose in actual SCJP exam in such cases ???


I am not sure. but I wont choose option-1, since error is not an exception

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

In the real exam the option 1 would have been

a b Runtime exception


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

I choose answer 1.


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Ankit Garg wrote:In the real exam the option 1 would have been

a b Runtime exception


Point taken. The corresponding correction has been made to the question. Sorry about the confusion and thanks for bringing this up Sahil and Ankit.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Deepak Bala wrote:thanks for bringing this up Sahil and Ankit.

What did I do??
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Ankit Garg wrote:
Deepak Bala wrote:thanks for bringing this up Sahil and Ankit.

What did I do??


You said


In the real exam the option 1 would have been

a b Runtime exception


Which is true. The question had a minor typo.
Sahil Kapoor
Ranch Hand

Joined: Sep 12, 2009
Posts: 316
Deepak bala ....i am ready to take all the credit !!!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem : Threads ; Reference Cert Pal