What is difference between sleep or wait method?
AnswerBot
1y
Sleep method pauses the thread for a specified time, while wait method pauses the thread until notified.
Sleep method is a static method of Thread class, while wait method is an instance method of Obje...read more
Vaishali b
2y
Sleep is a static method defined in thread class whereas wait is defined in object class.
sleep does not releases lock during synchronization whereas wait releases lock.
Help your peers!
Add answer anonymously...
Top HCLTech Java Developer interview questions & answers
Popular interview questions of Java Developer
Top HR questions asked in HCLTech Java Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app