62,612
社区成员
发帖
与我相关
我的任务
分享
package jlfk;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
try{
methodA();//提示出错,未定义该函数。
}
catch(IOException e){
System.out.print("Hello!");
return;
}
finally{
System.out.println("fine thanks!");
}
public static void methodA() throws IOException{//也有错
throw new IOException();
}
}
}