Java7 More precise Re-throw of an Exception
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 1295
Total Votes: 0 votes
Category: JAVA/Core JAVA
Submitted on: 2014-03-16 09:01:32
Submitted By: Appu T
Description:In this tutorial we are going to see re-throw exception in Java7. In previous versions of Java re-throwing exception in catch block didn’t indicate the actual exceptions possible from the try block.Also you could not change the type of exception thrown in the catch block without changing the method signature. Now in Java7, the semantics for catching and throwing exceptions has been redefined.If you catch an exception of some type, and don’t assign the exception variable, the complier will copy over the checked exception type that can be... - See more at: http://www.javatutorialscorner.com/search/label/Java More detail...