Java7 More precise Re-throw of an Exception

Tutorials Shared by the Internet Community



Java7 More precise Re-throw of an Exception


  • Total Hits - 27240

  • Total Votes - 4 votes

  • Vote Up - 2 votes

  • Vote Down - 2 votes

  • Domain -

  • Category - JAVA/Core JAVA

  • Submitted By - Appu T

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


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: ...

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