Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    Increased or decreased readability! Commented Jul 14, 2013 at 0:53
  • 1
    If you're doing the same thing in both cases, use multi-catch. If not, then not. Commented Jul 14, 2013 at 1:00
  • 3
    Note that a FileNotFoundException is an IOException. Commented Jul 14, 2013 at 1:02
  • @PaulBellora I had Eclipse auto-complete for me for the example. It's corrected in my real code. Commented Jul 14, 2013 at 1:03
  • @Aaron I'm with you, don't worry. I've seen Eclipse generate much sillier things, believe me. Commented Jul 14, 2013 at 1:20