Computer Science, asked by komalgaykwad56, 6 months ago

which of this method is used to avoid polling in java​

Answers

Answered by ItzManiac
20

Answer:

\huge\star{\underline{\mathtt{\red{A}\pink{N}\green{S}\blue{W}  \purple{E}\orange{R}}}}⋆

To avoid polling, Java uses three methods, namely, wait(), notify() and notifyAll().

Answered by narayanakummari88
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