A)
class MyException extends Exception
{
Myexception(String arg)
{
super(msg);
}
}
-> calling explicit parameterized constructor of super class of this class.
->whenever the above exception has to be thrown
We have to say
Throw new MyException (“description goes here”);
Comments
Post a Comment