1. Deadlock In Java, a deadlock is a situation where minimum two threads are holding the lock on some different resource, and both are waiting for the other’s resource to complete its task. And, none is able to leave the lock on the resource it is holding. ResolveDeadLockTest.java package thread; public class ResolveDeadLockTest { public static…