Answer to Question #194037 in Java | JSP | JSF for Bill

Question #194037

7. Given the following code, the output is __. Please select the correct option "A, B, C, D, or E"


class Sample

{

public static void main (String[] args)

{

try

{

System.out.println(5/0);

}

catch(ArithmeticException e)

{

System.out.print("Divide by zero????");

}

finally

{

System.out.println("5/0");

}

}


A. Divide by zero????

B. 5/0

C. Divide by zero????5/0

D. 5/0Divide by zero????

E. "5/0"


1
Expert's answer
2021-05-20T00:28:06-0400

C


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS