is it necessary to catch all types of exception
Answers
Answered by
2
Answer:
No, not every exception requires a try-catch. Every checked exception requires a try catch. For example, a NullPointerException is an unchecked exception, so it does not require a try-catch, whereas a FileNotFoundException is checked, so it does require one.
//PLEASE MARK MY ANSWER AS BRAINLIEST//
Similar questions