True or False

Quiz Guidelines

 

QID: 
550
Question: 

The following program will print java.lang.ArithmeticException: / by zero

class Test{
public static void main(String[] args){
int d = 0;
try{
int i = 1 / (d* doIt());
} catch (Exception e){
System.out.println(e);
}
}
public static int doIt() throws Exception{
throw new Exception("Forget It");
}
}

Select 1 option

A. True
B. False

Q&A Set: