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");
}
}
Suraj KumarPosted Dec 5, 2018, 8:17 AM
Jignesh KumarPosted Dec 5, 2018, 7:49 AM
Faisal PathanPosted Dec 5, 2018, 6:56 AM
Mehreen TahirPosted Dec 5, 2018, 6:38 AM