Oracle interview question

What is a deadlock in Java?