摘要:
之前的++函数 解决方法 原子引用 Integer包装类的坑 关于对象引用坑的测试 public class test { public static void main(String[] args) { Integer integer = Integer.valueOf(1100); Intege 阅读全文
摘要:
1.饿汉式 public class Hungry { //如果有很多占内存的数据的话 饿汉式存在浪费内存的问题,因为一上来就把所有的内存加载完毕了 private byte[] data1=new byte[1024*1024]; //私有化构造器 private Hungry(){ } priv 阅读全文
摘要:
/** * @author wuyimin * @create 2021-07-10-14:37 * @description * 异步执行,成功回调,失败回调 */ public class demo01 { //今天才发现如果不是静态函数在java类内部的主函数是不能直接调用的 public s 阅读全文