Professional Documents
Culture Documents
Syeda.20201bca0067 Oop Exp-12
Syeda.20201bca0067 Oop Exp-12
Submitted by
Name: Syeda Farheen
Roll No: 20201BCA0067
Laboratory Instructor
Mr.B. Prabhu Shankar
Procedure:
1. Deinde the class exception handling with try and catch block
witharithmeticException in the catch block of the resp[ective try statement.
2. When the user try to give the divisor value as 0. It will end up as an
exceptionalstatement.
Tools Used
JDK / Eclipse/ Netbeans / notepad++ / online java compiler
import java.util.*; class
exceptionhandling {
int a,b,res;
res=a/b;
} catch(ArithmeticException
e)
}
OUTPUT