what is the difference between sleep() and Wait()?
Answer Posted / vinay kumar
sleep() will wait go to sleep for amount of time that is specified in it.After the times finishes it resumes automatically.
wait() will also wait for some I/O and will NOT resume automatically but will resume only when notify() or notifyall() is called.
| Is This Answer Correct ? | 19 Yes | 7 No |
Post New Answer View All Answers
How many types of parsers are there?
What are parsing rules?
Can we call the constructor of a class more than once for an object?
Is main an identifier?
What is native method in java?
what is the difference between future and callable interface in java?
What is OOP's Terms with explanation?
What is the default value of an object reference declared as an instance variable?
How do you declare an empty string?
Explain the meaning of java applet.
What is abstract class constructor called?
Which one of the following suits the description of a string better: derived or primitive?
Are strings immutable in java?
What are the 7 types of characters?
What is java beans?