12
iRobot
8y

Heard Java 7 provides catching multiple exceptions in single catch block ! hmm .. why need when I got this 😎😁
try {
// do something...
} catch (Exception e){
//log it ..
}

Comments
  • 2
    cause you may want to treat exceptions differently
  • 0
    Because that's a really bad idea!
  • 2
    @azous I know that ..m jus kidding...noobies be like... 😜
  • 0
    @Vikram oh , sorry, thought you were ranting 😂😂
  • 1
    he he no issues @azous my intern was saying about that earlier today .. 😂
  • 0
    This is precisely why I think try/catch blocks are the most overrated programming concept ever. They make it far too convenient for programmers to ignore errors. And they are annoying and counterintuitive to write. Making you even more eagerly want to just catch all exceptions and be done with it.
Add Comment