Is it good to catch a more general type of Exception?
问题 If we are to catch specific forms of IOException , or any other kind as a matter of fact, and we only try and catch a couple (and define definitive outputs for them) say FileNotFoundException ZipException should we always trail it off and cover all bases with a catch(IOException e){ e.printStackTrace(); } and then possibly go even further and catch Exception e , or is this a complete waste of time? 回答1: Generally, you only want to catch and handle exceptions you can do something with at a low