For every project you implement you need to have a project dependent exception class sothat objects of this type can be thrown so in order to cater this kind of requirement theneed for user defined exception class is realized.for example:
class MyException extends Exception
{
public MyException(){};
public MyException(String msg)
{
super(msg);
}
}
No comments:
Post a Comment