Java7 More precise Re-throw of an Exception

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Java7 More precise Re-throw of an Exception

Statistics

  • Total Hits - 5296

  • Total Votes - 4 votes

  • Vote Up - 2 votes

  • Vote Down - 2 votes

  • Domain - www.javatutorialcorner.com

  • Category - JAVA/Core JAVA

  • Submitted By - Appu T

  • Submitted on - 2014-03-16 09:01:32

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.javatutorialcorner.com/search/label/Java ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements