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

write a sql query following source looking like below column1 column2 101,102,103 abc,def,ghi 1001,1002,1003 a,b,c i want the output column1 column1 101 abc 102 def 103 ghi 1001 a 1002 b 1003 c

1 Answers   KPIT,


What is program global area (pga) in oracle?

0 Answers  


How to loop through data rows in the implicit cursor?

0 Answers  


What is an oracle tablespace?

0 Answers  


Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.

0 Answers  






How to create a new table by selecting rows from another table?

0 Answers  


how to select alphabets in a one column , for this the table name is PA_TASKS and column name is TASK_NUMBER, In TASK_NUMBER the data like this 1.1.3NN,1.1.4NN,1.5.1NN,1.3.2NE,1.5NN,1NN,1.2NE,1CE , For this i need to disply output as only NN,but not other alphabets, if NN is thre means i should display , otherwise leave that blank or empty Its some urgent requirement ,thanks in advance

2 Answers  


What are the various constraints used in oracle?

0 Answers  


How are the index updates?

1 Answers  


what is a view?

7 Answers  


What is a Public Synonyms ?

1 Answers  


if you update view? where we store the data?

5 Answers   Cap Gemini,


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)