Thread: wait, notify, notifyAll

Which two are true?

1 - The notify method us synchronized
2 - To call wait, an object must own the lock on the thread
3 - The notify method causes a thread to immediately release its locks
4 - When a thread is waiting as a result of wait(), it releases all the locks it holds
5 - The notifyAll method must be called from within synchronized code
6 - The difference between the notify() and the notifuAll() is that notifyAll() notifies all waiting threads, regardless of the object they´re waiting on

Qual a resposta dessa :?:

4 e 5

eu acho

tenho quase certeza que essa questão caiu na minha prova de certificacao!!!

eu tbm acho que eh 4 e 5

é isso mesmo! :smiley: