Ola Pessoal não entedi essa questao..alguem poderia me ajudar.
Which statement is true?
10. class Worker extends java.lang.Thread {
11. synchronized void iTest() {
12. try {
13. wait();
14. } catch (Exception e) {}
15. }
16. synchronized static void sTest() {
17. notify();
18. }
19. } [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