• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem : Threads ; Reference Cert Pal

 
Sahil Kapoor
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9529
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the real exam the option 1 would have been

a b Runtime exception
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I choose answer 1.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Garg
Sheriff
Posts: 9529
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak Bala wrote:thanks for bringing this up Sahil and Ankit.

What did I do??
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak bala ....i am ready to take all the credit !!!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic