//异常重写 import java.io.IOException; public class Person { public void getName() throws IOException{ System.out.println("小张"); } }