What is a deadlock in Java?

58. What is a deadlock in Java?

  1. State when all processes have complete working and are dead
  2. State when threads are in hold state forever
  3. State when threads are not ready
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.