摘要:
class TestThread implements Runnable { private int i = 1; public void run() { while (true) { synchronized (this) { notify(); System.out.println(Thread 阅读全文
摘要:
static 静态字段 静态方法(类名调用,调用时才执行) 静态代码块(和字段相同) 静态导入(导入类中的静态方法) import static 类名 初始化顺序 class A { A() { System.out.println("A的构造器"); } int i = i(); static S 阅读全文