This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
The above method instantiates a annoymous implemntor of Runnable interface and defines a instance iniatlizer that acquires a lock on the annonymous implementer object and invokes wait() and then blocks forever? why does this happen? And how to make the thread run again and complete the execution to display "I am in run()", without commenting wait()? Thanks Deepak