Dan, your Thread Questions are very good: I don't understand though the answer of Q 39: I understand the it prints ABC, but why would the run method wait for ever and print nothing? You didn't explain that, and I am not sure it's a correct answer... So, Dan - or anyone that can - explain it to me...
Alfred, Thank you for asking that question. I now realize that the "waiting forever" answer option wasn't particularly instructive in that situation. When working with threads there is always that possibility that the thread scheduler won't allow a particular thread to run. However, I agree that the possibility is not high. To avoid that issue I changed the question a little and eliminated the "wait forever" answer option.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Yeast devil! Back to the oven that baked you! And take this tiny ad too: