Unchecked and runtime exceptions in java -
this question has answer here:
in java, have checked exceptions , unchecked exceptions. also, have runtime exceptions. question - runtime exceptions unchecked exceptions , unchecked exception runime excepions? means can these 2 words used interchangeably?
all runtime exceptions (e.g. nullpointerexception) unchecked exceptions.
since errors (e.g. stackoverflowerror) unchecked exceptions, not unchecked exceptions runtime exceptions.
the java language specifications define unchecked exception: "the unchecked exception classes run-time exception classes , error classes."
Comments
Post a Comment