Computer Science, asked by uditnagar2003, 1 year ago

how to call a method of one class in another class in java .

Answers

Answered by Anonymous
2
The notifyAll() method must be called from a synchronized context. To call wait(), an object must own the lock on the thread. The notify() method is defined in class java.lang.Thread. The notify() methodcauses a thread to immediately release its locks...

Read more on Brainly.in - https://brainly.in/question/3204029#readmore
Similar questions