-3

Why Object Class having wait(),notify(),notifyAll() methods. We need to extend Thread or implement Runnable to give Thread like behavior to a class . So why dint made them as part of Any of Thread or

user207421
  • 305,947
  • 44
  • 307
  • 483

1 Answers1

0

An object is not inherently associated with a thread - it's essentially just some field values and a (sub)class identifier in the virtual machine's memory space. By default, an object is quite usable by all threads of a running Java application.

einpoklum
  • 118,144
  • 57
  • 340
  • 684