hey guyz there are some silly things about our beloved JVM that it call an automatic notify if it seems no code is running other than a waiting thread,this automatic call to end wait called spontaneous wake up or spurious wake up. And this is mentioned in API of Thread.wait().