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



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

Answer / 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

More Oracle General Interview Questions

How do I call oracle stored procedures that take no parameters?

0 Answers  


What is a relational database management system?

0 Answers  


I have a table that log salary-increase-process have fields: autoid, old_salary, acctno and table EMP: acctno, name, salary I want to list count increase-salary of employees, each have old_salary, new_salary. Help me with SELECT statement, please!

1 Answers  


What is a data segment ?

1 Answers  


what is the scripts in data base?

0 Answers  






can u call user defined functions in select statements

2 Answers  


what are different types of deletes?

1 Answers  


How to save query output to a local file?

0 Answers  


who is the father of oracle and send chodd rules

4 Answers   ME,


Tell me New Feature of Oracle 10g?

5 Answers   Thermotech,


which institute and which faculty is providing best training for oracle sql, plsql in hyderabad

4 Answers  


Will you be able to store pictures in the database?explain.

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)