To give you a clear picture, here's a quick reference table with the major sources and estimated costs.
Occur at runtime; not checked by the compiler (e.g., NullPointerException , ArithmeticException ). The Control Flow of Try-Catch-Finally try block: Contains code that might throw an exception. catch block: Handles the specific exception thrown. Core Java Tutorial Pdf By Durga Sir