Home »
MCQs »
Java MCQs
What is a deadlock in Java?
58. What is a deadlock in Java?
- State when all processes have complete working and are dead
- State when threads are in hold state forever
- State when threads are not ready
- All of these
Answer: B) State when threads are in hold state forever
Explanation:
Deadlock in Java is a condition when two or more threads try to access the same resources at the same time.