Hi Ernest,
Thanks for the reply.
After reading your comment, I changed the code, so that the
Thread t2
sleeps for 10 seconds before calling notify().
This should take care that wait() gets called since the other thread is not sleeping. I still see the same result.
I am expecting to see after the wait is called -
here after being notified
Let me know what is going on here...