What is difference between wait and notify in java?
Answer / Aditya Kumar
In Java, `wait()` and `notify()` are methods used for synchronization in multi-threading. The `wait()` method makes the current thread wait until it is notified by another thread. The `notify()` method wakes up one of the threads that are waiting on an object. `notifyAll()` wakes up all threads that are waiting.
| Is This Answer Correct ? | 0 Yes | 0 No |
What happens if constructor is private?
Why char array is favored over string for the storage of passwords?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
Can constructor be protected in java?
java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
What is the default value of local and global variables?
what is Thread?
How can I become a good programmer?
What is application system?
List some java keywords sun like c, c + + keywords?
Why chararray() is preferred over string to store the password?
how to open and edit XML file in Weblogic???