Ola Pessoal não entedi essa questao…alguem poderia me ajudar.
Which statement is true?
- class Worker extends java.lang.Thread {
- synchronized void iTest() {
-
try { -
wait(); -
} catch (Exception e) {} -
} -
synchronized static void sTest() { -
notify(); -
} - } [code]
a) Compilation fails.
b) An exception is thrown at runtime.
c) A thread entering iTest() will block indefinitely.
d) Any blocked thread in iTest() can only be unblocked by a call to sTest().
e) Any call to iTest() will permanently disable all further access to that instance of Worker.
A Resposta é A