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

What are the predefined tablespaces in a database?

779


What is set operator oracle?

725


What is meant by joins? List out the types of joins.

726


How to write a left outer join with the where clause in oracle?

841


How can we find out the current date and time in oracle?

843


How to call a stored function in oracle?

753


What are the different windows events activated at runtime ?

2621


What is a dynamic performance view in oracle?

802


How to filter out duplications in the returning rows using oracle?

848


Explain the use of tables option in exp command.

837


What is the usage of save points in oracle database?

743


Is oracle a language?

702


What is transaction control statement and how many types of transaction control statement in Oracle?

819


Why use resource manager in Oracle?

869


What are the roles of dba?

808