摘要: 输出程序运行后的打印结果: class Father{ static { System.out.print("1"); } Father(){ System.out.print("3"); } } class Son extends Father{ static { System.out.print 阅读全文
posted @ 2021-01-02 14:42 junlu 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 遇到的一道面试笔试题,输出程序运行后的打印结果: class ReturnAndFinally{ static String fun(){ try { int v = 1/0; }catch (Exception ex){ return "ERROR"; }finally { return "OK" 阅读全文
posted @ 2021-01-02 14:36 junlu 阅读(73) 评论(0) 推荐(0) 编辑