《异常处理_参考答案》由会员分享,可在线阅读,更多相关《异常处理_参考答案(4页珍藏版)》请在金锄头文库上搜索。
一、 【必做题】1 写出以下程序的运行结果。Static double average(int a) throws NullPointerException Try Int sum = 0;for (int I = 0; I 127 | number -128)throw new ByteSizeException();public static void main(String args) tryfoo(555);catch (ByteSizeException e) e.printStackTrace();