📄 exceptiondemo.java
字号:
import java.io.EOFException;
import java.io.IOException;
class A {
public void m() throws EOFException{
}
}
class B extends A {
public void m() throws IOException, EOFException {
System.out.println("hello");
}
public static void main(String[] args) throws EOFException, IOException {
B b=new B();
b.m();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -