What is the purpose of the wait(), notify(), and notifyAll() methods?

Answer :
The wait(),notify(), and notifyAll() methods are used to provide an efficient way for threads to communicate each other.

0 comments:

Post a Comment

 
Copyright © Interview Questions and answers - Blogger Theme by BloggerThemes & freecsstemplates - Sponsored by Internet Entrepreneur