guidelines while writing exceptions
Answers
Answered by
0
1 . Clean Up Resources in a Finally Block or Use a Try-With-Resource Statement. ...
2.Prefer Specific Exceptions. ...
3.Document the Exceptions You Specify. ...
4.Throw Exceptions With Descriptive Messages. ...
5.Catch the Most Specific Exception First. ...
6.Don't Catch Throwable.
Similar questions