Java 7 Try statement with multi catch
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 2008
Total Votes: 0 votes
Category: JAVA/Core JAVA
Submitted on: 2014-03-16 09:03:06
Submitted By: Appu T
Description:In this tutorial we are going to see java7 multi catch for similar type exception Historically, catching multiple exceptions results in a catch block for each exception, with each block containing a variable with the type of that particular exception. In many cases, these catch blocks contained identical code that referenced the specified exception variable. It was difficult to write a common method to handle this duplicated code because the exception variables had different types, So you have possibility to write code to catch parent exception... - See more at: http://www.javatutorialscorner.com/search/label/Java More detail...