4
Answers

Explain what would be the output from the code segment:

Photo of Ken J

Ken J

6y
852
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)