Getting a deadlock is very unlikely to happen so usually..you will get an output under normal condition. Here by putting sleep method in .I am making it more probable for a deadlock to happen. I many situations..even without a sleep() method..the thread scheduler can behave in such way..that creates deadlock situation.
SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
subject: Can this be a case of deadlock ?And how to determine it output ?