Answer Posted / amod
the sleep() method is to make a thread to stop 4m working
for a fixed time sleep(5000)
it will make the thread to sleep for 5min
lly wait method ie wait()makes the thread to stop 4m
workin when other thread needs to excuteee
Amod s Dhupkar
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
What is empty list in java?
what is the use of bean managed and container managed with example?
Can Exception handling we can handle multiple catch blocks?
How do generics work?
What is the return type of the main method?
Can we declare the static variables and methods in an abstract class?
What is the benefit of using enum to declare a constant?
What is parse method?
If try block is successfully executed, Then Is Finally block executed?
Is object a data type in java?
How hashset works internally in java?
How do you declare an array that will hold more than 64KB of data?
What is the method to declare member of a class static?
Which method cannot be overridden in java?