![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java-源码
_CoderZxk
Talk is cheap.Show me your code
展开
-
Java源码阅读-String,Long
String值的不变性/** The value is used for character storage. */private final char value[];String s="zxk";s="rust";这个s变量的值发生了改变吗?答案是并没有,我们可以翻出源码来看一下 /** The value is used for character storage. */ private final char value[];这个value数组的定义是一个常量原创 2020-08-15 22:52:06 · 99 阅读 · 0 评论 -
Java源码阅读笔记(2)-LinkedList
首先我们来看下初始化 /** * Constructs an empty list. */ public LinkedList() { } /** * Constructs a list containing the elements of the specified * collection, in the order the...原创 2020-02-08 11:55:41 · 147 阅读 · 0 评论 -
Java源码阅读笔记(1)-ArrayList
ArrayList是我们经常见到的一个集合数据类型,所以我们来看看ArrayList是怎么实现的? /** * Constructs an empty list with the specified initial capacity. * * @param initialCapacity the initial capacity of the list ...原创 2020-02-03 12:06:23 · 145 阅读 · 0 评论