Computer Science, asked by Rajbeerkaur9813, 10 hours ago

guidelines while writing exceptions

Answers

Answered by Tanishirai2410
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