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 the difference between scrollbar and scrollpane?

607


What are heap memory and stack memory and what are memory tables.

505


Is char * a string?

539


What is isa relationship?

562


What string is utf8?

543






Can constructor be synchronized?

537


What are the five major types of reference sources?

532


Is finalize() similar to a destructor?

546


What is a constructor, constructor overloading in java?

524


What is the difference between public, private, protected, and friend access?

570


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

545


What are the different ways of implementing thread? Which one is more advantageous?

536


Explain throw keyword in java?

609


Why inputstreamreader is used in java?

544


Which java ide is used the most?

505