What is a typical symptom of deadlock in a Java program?
Deadlock often manifests as threads that are stuck in an infinite loop, constantly checking resources that are never freed.
Thatâ€™s partially correct. While deadlock can cause threads to be stuck, itâ€™s specifically due to circular waiting for resources, not an infinite loop.
Can you explain how deadlock is different from thread starvation or resource contention?