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 |
What is there in browser that it supports web based applications of java or any other PL?
What is Servlet Filter And What does it work?
diff between jsp include directive and jsp action include?
can we write implementation for a method with in another method?
Write a singleton program?
whats is statement and procedure
Java is fully object oriented languages or not?
What are the different algorithms used for clustering?
difference. between List and Set?
2 Answers Campus Interaction, HCL, Infotech,
Which class is the immediate superclass of the menucomponent class?
What restrictions are placed on the values of each case of a switch statement?
Is jvm a overhead?