4
Answers

Explain what would be the output from the code segment:

Ken J

Ken J

6y
830
1
public static void AMethod()
{
int num =1;
int div = 0;
int result;
try
{
result = num / div;
}
catch (ArithmeticException ex)
{
System.out.println ("Div by O");
}
}
Answers (4)