What is difference between wait and sleep methods in Java?

Channel:
Subscribers:
53,900
Published on ● Video Link: https://www.youtube.com/watch?v=E92PAIxPZTg



Duration: 0:38
113 views
3


What is difference between wait and sleep methods in Java?
Aug 3, 2019

Java sleep() and wait() – Discussion The major difference is that wait() releases the lock or monitor while sleep() doesn’t releases the lock or monitor while waiting. wait() is used for inter-thread communication while sleep() is used to introduce pause on execution, generally. ... it will wake up the sleeping thread.


··········

“Be competent, be more skilful than others. Here you will find the answer to all of your questions.”

✋ The purpose of our channel is to create EDUCATIONAL content. That was our intention with this video as well. We would like to give you COMPLETE INFORMATION on the subject, so unfortunately we can also discuss elements that may be hurtful to people.







Tags:
What is difference between wait and sleep methods in Java?
frequently asked question
question and answer
answer