Exception Handling

Exception:

  • An event which disrupts normal execution of a program is known as exception

Exception handling: 

  • Handling an unexpected-event which results due to programmatic-error or non-availability of required resources during execution/run-time

Here is the index for Java Exception Handling concepts

Introduction

Runtime mechanism:

Checked exception v/s Unchecked exception:

try-catch-finally blocks:

Nested try-catch block:

Return value from try-catch-finally blocks:

Difference between:

Print Exception information

throw v/s throws:

throws v/s try-catch-finally:

Rule for Exception handling when overriding:

User-defined exception:

Java 1.7 version enhancements:

Interview question & answer:

 

Suggest tutorials from Contact Us page