What is the output of the following code? And why? a. tryl 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");...


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

Extracted text: What is the output of the following code? And why? a. tryl 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