Questions « Thread « SCJP
Java Source And Data Type
A dead thread cannot be restarted(True/False).
Answer: restarting a thread
The yield() method puts a thread in the waiting state(True/False).
Answer: yield method
Only threads have locks(True/False).
Answer: threads and locks
Classes have locks(True/False).
Answer: classes and locks
Primitive types have locks(True/False).
Answer: primitive and locks
Only Runnable objects have locks(True/False).
Answer: runnable objects and locks
The Thread class inherits the wait() and notify() methods(True/False).
Answer: wait() and notify() method
The Object class declares the wait() and notify() methods(True/False).
Answer: Object class and wait() and notify() method
Only the Synchronized class has the wait() and notify() methods(True/False).
Answer: synchronized class
What is the output from the following programm?
Answer: running thread
What is the output from the following program?
Answer: random sleep
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.