A2. Answer the following questions: a. What is the output of the following code? And why? try{ int x = 2; tnt y = 0; int z x/y: System.out.println(z) ; )catch (ArithmeticException e){...


A2. Answer the following questions:<br>a. What is the output of the following code? And why?<br>try{<br>int x = 2;<br>tnt y = 0;<br>int z<br>x/y:<br>System.out.println(z) ;<br>)catch (ArithmeticException e){<br>System.out.println(

Extracted text: A2. Answer the following questions: a. What is the output of the following code? And why? try{ int x = 2; tnt y = 0; int z x/y: System.out.println(z) ; )catch (ArithmeticException e){ System.out.println("Can't divide by zero"); ]finally{ System.out.println ("Math is fun")

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here