Throw java为什么提示错误

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);
}
}
}


神不在的星期二
浏览 573回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java