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
Can a function return a function?
What are the high-level thread states in java programming?
Tell some latest versions in JAVA related areas?
What is e in java?
What are the basic concepts of OOPS in java?
What are the common uses of "this" keyword in java ?
Is alive and join method in java?
State the main difference between c++ and java?
What is space character in java?
How to display all the prime numbers between 1 and 100
What is the history of java?
What is the primitive type byte?
What is java lang object?
Can we have multiple public classes in a java source file?
What is package private scope in java?