Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Vernon Day   on Mar 04 In Java Category.

  
Question Answered By: Blas Fischer   on Mar 04

try {
} catch(Exception e) {
//
}
It is not a good approach  to catch all exceptions
with catch(Exception e) and makes the code  difficult to debug.
It's better that you find  that what exceptions may be thrown in the body of your try catch and catch all the specific exceptions, and perform the approperiate action for them.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 


Tagged: