- ___ is the normal priority value of a Thread.
5
- ___ method waits until the thread on which it is called terminates.
join
- The ____ method returns true if the thread upon which it is called is still running.
isAlive
- A thread can attain a lock on an object only if the class of that object implements Runnable. True/False?
False.
- The wait() method can not be invoked from synchronized code. True/False
False
- A class lock is obtained on synchronizing the ___ methods of a class.
static
- A dead thread cannot be stated again. True/False?
True
- Threads in Java are platform dependent. True/False
True
- when we invoke notify(), it is not possible to specify which thread is to be notified. True/False?
True
- sleep() method declares ___ in its throw clause.
InterruptedException
No comments:
Post a Comment