Loading

摘要: 父类与子类的静态代码块与构造器的执行顺序 代码如下 class B extends Object { static { System.out.println("Load B"); } public B() { System.out.println("Create B"); } } class A e 阅读全文
posted @ 2021-08-25 20:42 KeepGoing4everZxz 阅读(88) 评论(0) 推荐(0)
摘要: try catch中的return与finally 代码为 public class Test{ public int add(int a,int b){ try { return a+b; } catch (Exception e) { System.out.println("catch语句块") 阅读全文
posted @ 2021-08-25 20:38 KeepGoing4everZxz 阅读(71) 评论(0) 推荐(0)