class Check {
public static void main(String args[]) {
try {
URL u = new URL("");
ObjectInputStream in = new ObjectInputStream(u.openStream());
Object o = in.readObject();
System.out.println("Success");
} catch (MalformedURLException e) {
System.out.println("Bad URL");
} catch (StreamCorruptedException e) {
System.out.println("Bad file contents");
} catch (Exception e) {
System.out.println("General exception");
} finally {
System.out.println("doing finally part");
}
System.out.println("Carrying on");
}
}
提示:StreamCorruptedException和MalformedURLException是IOException的子类
A、打印输出Carrying on
B、打印输出Doing finally part
C、打印输出General exception
D、打印输出Bad file contents
E、打印输出Bad URL
F、打印输出 Success
ABE