摘要: 前言 分析ArrayList 的源码为JDK8版本。 源码分析 我们先看看一个案例: public class test2 { public static void main(String[] args) { int index = 10000000; ArrayList arrayList = n 阅读全文
posted @ 2020-10-11 21:10 加速丨世界 阅读(384) 评论(0) 推荐(1) 编辑
摘要: 前言 在看ArrayList源码的时候遇到了关键字“transient”,可怜的我居然没有遇到过这个关键字,那没有办法只好去找资料了解一下它的功能。 功能说明 先看一个案例 public class User implements Serializable { private static fina 阅读全文
posted @ 2020-10-11 21:08 加速丨世界 阅读(233) 评论(0) 推荐(0) 编辑