2076 1

CSC419 ยท 2076 ยท 10 marks

What is exception handling? Discuss the use of each keyword (try, catch, throw, throws and finally) with suitable Java program.

What is exception handling? Discuss the use of each keyword (try, catch, throw, throws and finally) with suitable Java program.[10]

Advanced Java ProgrammingChapter 1: Programming in JavaHandling Exceptions

Exception handling is a mechanism in Java that allows a program to handle runtime errors (exceptional conditions) in a controlled manner, so that the normal flow of the program can be maintained and the program does not crash abruptly. When an exception occurs, an object representing that error i...