What is deadlock and how to avoid this?

Answers were Sorted based on User's Feedback



What is deadlock and how to avoid this?..

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

What is deadlock and how to avoid this?..

Answer / priyavarzhni

Deadlock is avoided by synchronising the code.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Core Java Interview Questions

Can we override the overloaded method?

0 Answers  


When is the finalize() called? What is the purpose of finalization?

0 Answers  


Name the immediate superclass of the MenuComponent class?

1 Answers  


Is it compulsory to have atleast one abstract method in abstract class?

10 Answers  


What are the types of casting?

0 Answers  






Does list allow duplicates in java?

0 Answers  


can we declare private class in java file?

13 Answers  


Give us the name of the list layoutmanagers in java?

0 Answers  


What is a protected void?

0 Answers  


What is a for loop in java?

0 Answers  


if two references are having same hash codes,is that means those are refering to same object?

5 Answers   CTS,


is java support call by reference and call by value, if supports please explain?

5 Answers  


Categories