Exception
Exception
ABSTRACT CLASS
DATE:
AIM:
ALGORITHM:
STEP 2: Create an abstract key before the class keyword in class declaration.
RESULT:
Thus the program on employee details using abstract class has been
successfully executed and output is verified.
AIM:
ALGORITHM:
try{
int[] Num={1,2,3};
System.out.println(Num[10]);
catch(ArrayIndexOutOfBoundsException e)
RESULT:
Thus the program for arithmetic exception has been executed successfully and
output is verified.
AIM:
ALGORITHM:
class Exception
try{
int a=30,b=0;
int c=a/b;
System.out.println("Result="+c);
catch(ArithmeticException e)
RESULT:
Thus the program for arithmetic exception has been executed and output
is verified.
AIM:
ALGORITHM:
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
try{
catch(FileNotFoundException e)
RESULT:
Thus the program for file not found exception has been executed successfully
and output is verified.