Explain about wait() method?



Explain about wait() method?..

Answer / Damodar

"The wait() method in Java is used by a thread to pause its execution for a specified amount of time or until it's notified. It releases the lock on an object and allows other threads to execute."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the supported platforms by java programming language?

1 Answers  


How to create an interface?

1 Answers  


What is the use of jtable?

1 Answers  


How infinite loop is declared?

1 Answers  


Can we print null in java?

1 Answers  


Can we write a class without main method in java?

1 Answers  


What is the arguement of main method?

1 Answers  


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

1 Answers  


Why all programming languages have main as a execution starting point?

4 Answers  


How many types of variables are there?

1 Answers  


Explain the differences between static and dynamic variables?

1 Answers   Fidelity,


How do you use, call, and access a non-static method in Java?

2 Answers  


Categories