猿问

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


神不在的星期二
浏览 580回答 1
1回答
随时随地看视频慕课网APP

相关分类

Java
我要回答