diff b/w sleep(1000) and wait(1000)?

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


Please Help Members By Posting Answers For Below Questions

What is a Presistent Object?

634


What is jar?

629


Can we catch more than one exception in a single catch block?

621


How do you sort objects in java?

511


What is the console in java?

672






os is developed in c no java is more secured then c na why dont the os developed is developed using java

3516


How can I become a good programmer?

482


What does a method signature consist of?

504


Can we able to pass objects as an arguments in java?

530


What is the significance of listiterator?

563


Explain the difference between string, stringbuffer and stringbuilder in java?

551


What is the difference between JVM and JRE?

616


Can constructor be protected in java?

499


What are the advantages and disadvantages of reference counting in garbage collection?

567


Why is the type for real numbers called double?

540