ServiceNow Interview Question

write JAVA code to create a deadlock.