aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Problem with Devakas Final Exam Q  on Static Thread methods 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 with Devakas Final Exam Q  on Static Thread methods" Watch "Problem with Devakas Final Exam Q  on Static Thread methods" New topic
Author

Problem with Devakas Final Exam Q on Static Thread methods

sandeep muley
Ranch Hand

Joined: May 04, 2008
Posts: 39
Chose the available static methods from the following list(Choose two)
A. Thread.start();
B. Thread.setprioprity
C. Thread.sleep
D. Thread.getname
E. Thread.yield
F. Thread.run
G. Thread.CurrentThread
H. Thread.join

Answer EG

Why not C.................

Thanks,
Sandeep
Cleared SCJP1.5 with 97% score..........
Next target SCWCD............
Ivan Ivanic
Ranch Hand

Joined: Oct 31, 2007
Posts: 100
You are correct. Sleep is static, don't know why they did not marked it as correct


<a href="http://faq.javaranch.com/java/UseRealWords" target="_blank" rel="nofollow">Use Real Words</a> <a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank" rel="nofollow">!!!Use Code Tags!!!</a> <a href="http://faq.javaranch.com/java/SayThanks" target="_blank" rel="nofollow">Say Thanks</a><br />scjp6
sandeep muley
Ranch Hand

Joined: May 04, 2008
Posts: 39
lets bring this to Devakas notice..............
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
delete.
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
It is a static method. Seems like a mistake
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3219
    
  49

Hi Sandeep,

This question is correct. Why didn't you read the explanation provided with that question?

Ok, to avoid this confusion, please read the original question, answer and the explanation below:

Question:
Choose the available STATIC methods from the following list (choose two)

Options:
A. Thread.start();
B. Thread.setPriority()
C. Thread.sleep(int)
D. Thread.getName()
E. Thread.yield();
F. Thread.run();
G. Thread.currentThread();
H. Thread.join();

Correct Answer: EG

Explanation: Answer-C is wrong, because the method Thread.sleep(int) is NOT available! The available static method is Thread.sleep(long). (Pay attention for the method signature).


Hope you can understand.

Cheers,

Devaka.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Ivan Ivanic
Ranch Hand

Joined: Oct 31, 2007
Posts: 100
Well that sure puts some light to the problem
 
Consider Paul's rocket mass heater.
 
subject: Problem with Devakas Final Exam Q on Static Thread methods