SCJP 1.4
Originally posted by Keith Jones:
In this code will there be an endless stream of exceptions thrown? Are there cases when we can't just simply change 'if' to 'while'?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
"I'm not back." - Bill Harding, Twister
SCJP 1.4 - SCWCD 1.4
SCJP 1.4 - SCWCD 1.4
SCJP 1.4 - SCWCD 1.4
What happens to the thread that is waiting for the object�s lock, when the thread is awakened?
it continues AFTER wait() or goes to test the loop again?
SCJP 1.4 - SCWCD 1.4
SCJP 1.4 - SCWCD 1.4
Originally posted by Cristiano Sganzerla:
so when the thread is awakened will the comment code execute?
SCJP 1.4 - SCWCD 1.4
Don't get me started about those stupid light bulbs. |