发布时间:2020-07-31 03:24:45
问题补充:
import java.io.*;
class ExceptionTest {
public void trythis() {
try {
System.out.println("1");
throw new EOFException();
} catch (IOException e1) {
System.out.println("2");
} catch (Exception e2) {
System.out.println("3");
} finally {
System.out.println("4");
}
System.out.println("5");
}
public static void main(String[] args) {
ExceptionTest et = new ExceptionTest();
et.trythis();
}
}