What is deadlock and how to avoid this?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
deadlock is the uneven condition occured between two
synchronized methods calling each other on each others bodies.
we can avoid dead lock threw inter thread communication by
calling wait notify and notifyall methods of object class
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / priyavarzhni
Deadlock is avoided by synchronising the code.
| Is This Answer Correct ? | 0 Yes | 5 No |
Is string is a keyword in java?
What do you mean by order of precedence and associativity?
What java is used for?
What are the two types of streams offered by java 8?
Why bytecode is called bytecode?
How is rounding performed under integer division?
Can an abstract class be final?
What is a variable and constant?
Is space a char?
What is a vararg?
What are the new features in java 8? Explain
What is floor in java?