What is a deadlock in Java?
Deadlock occurs when two threads are each waiting for the other to release a resource, but neither thread is able to proceed.
Thatâ€™s partially correct. Deadlock involves threads waiting for resources, but it's specifically a circular waiting pattern.
Can you explain how deadlock can be identified using thread dumps or tools like `jstack`?