impact.com interview question

What is a deadlock in Java?