public class Defind {
public static void main(String[] args) {
try
{
throw new DefindException("异常");
}
catch(DefindException e)
{
System.out.println(e);
}
}
class DefindException extends Exception
{
public DefindException(String msg)
{
super(msg);
}
}
}
神不在的星期二
随时随地看视频慕课网APP
相关分类