Deadlock in java is a programming situation where two or more threads are blocked forever.