class Divider {
Float perform(int a, int b) throws ArithmeticException,MyException{
Float result=null;
if(a==12)
throw new MyException("12 is not a right number!");
result=(float)(a/b);
return result;
}
}
public class MyException extends Exception {
public MyException(String message)
{
super(message);
}