what is the difference between sleep() and Wait()?
Answer Posted / deepak divvela
The main difference is if we need the thread wants to block
particular period of time we just choose sleep().
and when the thread called wait() means it will blocked
untill we will call notify(),notifyAll();
Is This Answer Correct ? | 49 Yes | 14 No |
Post New Answer View All Answers
What is meant by method?
How are the elements of a gridbaglayout organized in java programming?
What is hashing in java?
java Technical questions asked by JPMC
What language is java written?
What is the purpose of void class?
How do you reverse a string in java without using string buffer?
State one difference between a template class and class template.
What is this () in java?
What are generic methods?
When should I use singleton?
Can we define private and protected modifiers for the members in interfaces?
What does mean in regex?
In which order the iterator iterates over collection?
Explain the differences between abstraction and encapsulation?