• 2021-04-14
    class MyException extends (1) {
    }
    public class Demo {
    public static void main(String[] args) {
    try {
    show();
    } catch ( (2) e) {
    e.printStackTrace();
    }
    }
    public static void show() (3) MyException {
    throw new MyException();
    }
    以上程序,创建了一个自定义异常(编译异常),请补全空白处代码
  • 举一反三