What is the difference between Sleep and Wait? (Java)

Answer Posted / shaik syed bashs

using sleep method thread will suspended for some time but
using wait() method thread will kept aside for some
time.wait() method is in object class but sleep() is in
thread class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to turn on or off recycle bin for the instance?

854


How to connect to oracle using service name instead of sid?

806


What is a trigger and what are its types in oracle?

785


what is normalisation?what are its uses?

1975


What is the usage of control file in oracle?

852


How many types of cluster table in Oracle?

815


How to rename an index in oracle?

843


I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database

1910


What are the uses of synonyms?

873


How to open and close an explicit cursor in oracle?

826


What is a schema in oracle?

800


How to convert a date to char in oracle? Give one example.

843


Can I create users through internet explorer in oracle 10g?

813


How do I connect to oracle?

781


Design database draw er diagram for a certain scenario ?

4347