which of the statements are true? a) any java object can be a runnable. b) metho
ID: 3556261 • Letter: W
Question
which of the statements are true?
a) any java object can be a runnable.
b) method notifyAll() moves all threads is from wait to run state.
c) two different threads can be actively in two different static synchronized methods of the same class.
d) a thread, S1 cannot possess two distinct locks of two instances of the same class.
e) every java class instance has a key.
f) A Runnable is a thread.
g) A thread executing sleep() gives up the lock.
h) a thread must have the lock of Object, o , before executing o.notify().
i) a thread cannot hold two locks at the same instant in time.
j) any java Object can be a listener
k) Thread share local varibles
Explanation / Answer
a) true
b) false
c) true
d)true
e)true
f)true
g)false
h)false
i)true
j)false
k)true
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.