What will happens, when a thread cannot acquire a lock on
an object?
Answers were Sorted based on User's Feedback
Answer / anonymous
To my mind, this seems ambigious.
Simply another thread may try to use the same object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sudarsan
It will be waiting in runnable stage untill it acquire
object lock.
We call explicitly send this thread to blocked stage using
wait() or sleep() methods to avoid wasting cpu time.
| Is This Answer Correct ? | 1 Yes | 0 No |
diff between jsp include directive and jsp action include?
What value does readline() return when it has reached the end of a file?
whats is mean by connectionpooling
Explain the different types of memory used by jvm?
Difference Between getRequest and PostRequest?
What is private static final long serialVersionUID = 1L;
Why does the tag url-encode javascript and mailto links?
How are commas used in the intialization and iteration parts of a for statement?
why static class in java
Differences between applications and applets?
what is a non-repeatable read?
What is threadfactory?