Why wait, notify and notifyAll is defined in Object Class and not on Thread class in Java

Why wait, notify and notifyAll is declared in Object Class instead of Thread is famous core java interview question which is asked during all levels of Java interview ranging from 2 years, 4years to quite senior level position on java development. Beauty of this question is that it reflect what does interviewee knows about wait notify mechanism, how does it sees whole wait and notify feature and whether his understanding is not shallow on this topic. Like Why Multiple inheritance is not supported in Java or why String is final in java there could be multiple answers of why wait and notify is defined in Object class and every one could justify there reason.  
Read more »

0 Response to "Why wait, notify and notifyAll is defined in Object Class and not on Thread class in Java"

Posting Komentar