Is it not a good practice to handle runtime exceptions in the code?
https://softwareengineering.stackexchange.com/questions/91827
-
02-11-2019 - |
Question
I am working on a Java application, and I see that Run time exceptions are handled in many places. For example,
try {
// do something
} catch(NullPointerException e) {
return null;
}
My questions is, when is it a good practice to handle Runtime exceptions? When should exceptions be left unhandled?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with softwareengineering.stackexchange