which of this method is used to avoid polling in java
Answers
Answered by
20
Answer:
To avoid polling, Java uses three methods, namely, wait(), notify() and notifyAll().
Answered by
1
Answer:
To avoid polling, Java uses three methods, namely, wait(), notify() and notifyAll(). All these methods belong to object class as final so that all classes have them. They must be used within a synchronized block only.
Similar questions