Any responses to answer B???
u know, objects imlementing Runnable interface or extending Thread class also extend Object class which is the root for all of classes. Among Object class's methods, wait() is one, so we can say a thread has a wait() method althogh it hierients from Object.
u say wait() is a method of monitor. I doubt it. Speaking in theory,
monitor in
Java is just a mechanism for programmer and developers and the implement of the mechanism is don by VM. Unlike Java, C++ owns a series of methods to deal with
sychronization so called, so you can explicitly call those methods, right? At last, I think wait() is owned by objects not class monitor.
do you think so? Please Let me know if you have more correct reply.
regds
George