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 |
Can we override the overloaded method?
When is the finalize() called? What is the purpose of finalization?
Name the immediate superclass of the MenuComponent class?
Is it compulsory to have atleast one abstract method in abstract class?
What are the types of casting?
Does list allow duplicates in java?
can we declare private class in java file?
Give us the name of the list layoutmanagers in java?
What is a protected void?
What is a for loop in java?
if two references are having same hash codes,is that means those are refering to same object?
is java support call by reference and call by value, if supports please explain?