I have doubt is why these there methods wait(),notify(),notifyAll() is in object class? After so much digging i came up with some solution ->
1. JAVA is root heirarchy language and every ojbect has some internal thread run( like garbage collection thread).So if we put it in Thread then we have to inherit and unnecessariy take overhead of other facility of Thread class. 2.except waiting on thread ,there is condition where we need to wait on database then putting these methods in thread restrict us to inherit thread ,which is not required. Like this there are couple of more reason. i found.
I just wanted to know the above reason i mentioned is what extent correct . if it is not then what are the reasons?
There were also quite some hits for messages in this forum.
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