1.Which of the following are true? g. No restriction is placed on the number of threads that can enter a synchronized method. question: why this answer is wrong? 2.Which of the following will force a thread to move into the Not-Runnable state? c. Thread.join method. question: who can tell me why this answer is right?
scjp 1.4<br />challenge haven't limit!
posted 13 years ago
About Thread.join() please check this post Salient join() characteristics About the first one, Not more than one thread can access synchronized methods since the Thread has to own the monitor of the object the method belongs to, and since not 2 threads can own the monitor of an object then there ARE restrictions on this issue.