摘要:
public class SynchronizedDEmo { public static void main(String[] args) { TestThread tt = new TestThread(); Thread t1 = new Thread(tt); Thre... 阅读全文
摘要:
接口顾名思义是用来拓展功能的 接口的注意点: 1.接口是一个特殊的类 2.接口成员变量默认修饰符为 public static final 3.在jdk1.7之前,接口中只可以有抽象方法,在jdk1.8及之后,接口中可以有非抽象方法,用static和default修饰,用static修饰的方法只可以 阅读全文