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...

Plz Use (NetBeans IDE) programA2. Answer the following questions:<br>a. What is the output of the following code? And why?<br>try{<br>int x<br>2;<br>=<br>tnt y<br>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"); } Answer:

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here