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"
C
Comments
Leave a comment