Fpr the following code:
class exception{
public static void main(String[]args) {
try{
throw new Exception(“mai ni janda agge”);
System.out.println(“hahahah”); //1
}catch(Exception e){
System.out.println("…and the exception is…"+e);
}System.out.println(“i am here”);
}
}
I am getting error whereas mam is able to run the similar type of program.