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 the Oracle Prepares the Execution Plan and how it chooses the Optimal one?

0 Answers   Oracle,


What is the diff between Oracle and SQL Server

1 Answers  


How to run queries on external tables?

0 Answers  


Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined at the same block level ?

1 Answers  


What are joins, explain all types of joins?

0 Answers   Bravura Solutions,


What are nested tables?

0 Answers  


11. Display the client number and name and the client number and name of the person who referred that client.

0 Answers   Wipro,


How can windows applications connect to oracle servers?

0 Answers  


What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ?

2 Answers  


why you need store procedure ? where do we use it in a Java project? can you get the code for as store procedure using in Java?

1 Answers   Goldman Sachs,


What are the different types of partitions in oracle?

0 Answers  


What happens if variable names collide with table/column names?

0 Answers  


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