Reason is both of them are used to do something on thread if you don’t have created a thread in your class it means there is already a thread created by jvm to run your program and if you want to stop that current thread so you have to simply call wait method or if you want to notify that thread you can use notify method.

Now think if these two methods are in thread class so you have a burden to extend thread class and then you are unable to extend any other class.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s