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 use os authentication with weblogic jdriver for oracle and connection pools?

1 Answers  


What is an oracle recycle bin?

1 Answers  


How to store only time; not date and time?

1 Answers  


What is java oracle used for?

1 Answers  


I have table-A(1,2,3)& table-B(3,4,5).what is the different b/w below questions? A union all B? B union all A?

2 Answers   Zensar,


How to concatenate two text values in oracle?

1 Answers  


How to write a query with a left outer join in oracle?

1 Answers  


What is system tablespace?

1 Answers  


What is indexing, and how does it improve performance?

1 Answers  


what is a cartition product?

4 Answers  


What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.

1 Answers  


What do you mean by a database transaction & what all tcl statements are available in oracle?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • 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)