Q1. What is the difference between a runtime exception and a checked exception?
A1. You must either catch or throw a checked exception. The unchecked exception (aka Runtime exception) does not have to be explicitly handled.
Q. So, when to use checked exception,
…