【问答】Throw java为什么提示错误
网站建设吧
全部回复
仅看楼主
level 13
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);
}
}
}
2018年06月05日 02点06分 1
1