Engineering Full Stack Apps with Java and JavaScript
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