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
What is the use of static class?
What are conditionals and its types?
How many techniques can be employed to create a string object?
Does apple use java?
What is difference between class and object in java?
How thread scheduler schedule the task?
What are the different approaches to implement a function to generate a random number?
What is heterogeneous in java?
What is a Null object?
What are the differences between forwarding () method and sendredirect() methods?
What is java beans?
What is an infinite loop?
Why collection is called framework in java?
Can a main method be overloaded?
What is a concrete classes? Is Java object class is concrete class?