摘要:
new一个类对象,类中各部分执行顺序:静态代码块->非静态代码块->构造函数->一般方法。 public class father { private String name; father(){ System.out.println("--父类的无参构造函数--"); } father(Strin 阅读全文
摘要:
源码: getAndIncrement: public final int getAndIncrement() { for (;;) { int current = get(); int next = current + 1; if (compareAndSet(current, next)) re 阅读全文