重写异常

//异常重写
import java.io.IOException;

public class Person {

    public void getName() throws IOException{
        System.out.println("小张");
    }
}

 

posted @ 2014-12-13 00:10  屌丝一枚#  阅读(59)  评论(0)    收藏  举报