Is checking for exceptions in code or using try-catch a better practice in Java?

Posted by badpanda on Stack Overflow See other posts from Stack Overflow or by badpanda
Published on 2010-03-18T18:45:07Z Indexed on 2010/03/18 18:51 UTC
Read the original article Hit count: 351

I had someone mention to me that catching all exceptions is not necessarily good practice (for example, NullPointerException). I am looking for an explanation of when this is a good thing, when it is not, and why it is as such :D

Thanks!!

badPanda

© Stack Overflow or respective owner

Related posts about java

Related posts about exception