void makeConnection(String url) {
try {
getSomething( );
} catch (NullPointerException e) {
System.out.printin("Invalid URL");
return;
} catch (Exception e) {
System.out.println("Exception");
}
}
A、打印Exception
B、编译正确,运行出错
C、编译正确,运行正确,什么也不打印
D、打印Invalid URL
A