what is deadlock in threads?
with example
Answers were Sorted based on User's Feedback
Answer / ak
If an object A is holding an object X and trying to access
object Y and Object B is holding an object Y and trying to
access X, both the objects A,B want to release their
objects only after getting access to the target object in
that situation it is a dead lock
| Is This Answer Correct ? | 2 Yes | 1 No |
Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
what is the logic inside any default constuctor?
What are the different types of garbage collectors in java?
What are static initalizers in java ?
when to use ArrayList and when to use HashMap in webApplication.
Write a program to check for a prime number in java?
Is main a keyword in java?
What do you understand by the term polymorphism?
When you Click a Button, What event will be fired?
What are latest features introduced with java 8?
why java is platform independent?
What are the uses of final, finally and finalize in java?
2 Answers Agiline, FINO PayTech, HCL,