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 does sprintf mean?
what do you mean by classloader in java?
Can we use string in the switch case?
I want to print “hello” even before main is executed. How will you acheive that?
What do you mean by constant time complexity?
Can we override the private methods?
Why inputstreamreader is used in java?
Does variable declaration allocate memory?
Can we override singleton class?
Why hashset is used in java?
What is java reflection?
How java is similar to c?
Name few "optional" classes introduced with java 8 ?
Can you extend main method in java?
Give any two differences between C++ and java.