Generally if any class extends Exception , it becomes checked exception. Runtime exception also extends Exception. Then how is it unchecked exception?
Is it like they have a custom check in compiler for this special case?
EDIT : I have proper idea about checked v/s unchecked exception and their pros & cos etc. I don’t accept differences between them in answer.
It’s explicitly in the specification, section 11.1.1:
So yes, the compiler definitely knows about
RuntimeException.