Java Final 53
Java Final 53
A PROJECT REPORT ON
“EXCEPTION HANDLING ”
SUBJECT: JAVA PROGRAMMING [22412]
SUBMITTED BY:
CERTIFICATE
This is a certified project report entitled
“EXCEPTION HANDLING”
SUBMITTED BY:
Under our supervision and guidance for partial fulfillment of the of requirement for
Diploma in computer technology affiliated to
Maharashtra State Board of Technical Education, Mumbai
For Academidic year
2023-2024
The aim of this course is to help the student to attain the following industry identified
competency through various teaching learning experiences:
4
lOMoARcPSD|34300270
INDEX
Sr.no Title Page No.
1 Introduction 5
9 Output 15
INTRODUCTION
The Exception Handling in Java is one of the powerful mechanism to handle the
runtime errors so that the normal flow of the application can be maintained.
In this tutorial, we will learn about Java exceptions, it's types, and the difference between
checked and unchecked exceptions.
In Java, an exception is an event that disrupts the normal flow of the program. It is an
object which is thrown at runtime.
The core advantage of exception handling is to maintain the normal flow of the
application. An exception normally disrupts the normal flow of the application;
that is why we need to handle exceptions.
Else
Display division of I and j
Step5:finally block will get executed
Step6:Stop
System.out.println("program ended");
}
}}
lOMoARcPSD|34300270
class throw_throws {
try {
double div=number1[ind] / number;
System.out.println("the value of array index entered is=" + number1[ind]);
System.out.println("the value of array-index/number is=" +div );
}
catch (ArrayIndexOutOfBoundsException e) {
System.out.println("ArrayIndexOutOfBoundsException occured");
System.out.println(e);
}
catch (ArithmeticException e) {
System.out.println("ArithmeticException occurerd");
System.out.println(e);
}
lOMoARcPSD|34300270
catch (Exception e) {
System.out.println(e);
} finally
{
}
}
lOMoARcPSD|34300270
OUTPUT=>
lOMoARcPSD|34300270
Conclusion
References
• https://www.geeksforgeeks.org/
• https://www.javatpoint.com/
• Training notes.