Some programmers seem to be saving up carefully crafted functions and classes for a rainy day. There is no other reason for this code to exist. It was never used in the past. It has no immediate utility.
This is what makes it different from plain old dead code. For code to be dead it had to be alive at some point.
Examples include:
Also, I've seen elaborate catch blocks where operations like assignment or returning are wrapped in try blocks. The catch will absolutely never execute.
Really, can you imagine what would need to happen for:
int x = 4;to throw an exception?