![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JDK源码简单分析
文章平均质量分 83
woyixiaoren
这个作者很懒,什么都没留下…
展开
-
ArrayList方法初探
1、继承的类以及实现的接口:继承自:AbstractList实现了:List,RandomAccess,Cloneable,java.io.Serializable;定义的成员变量:transient Object[] elementData;是一个数组缓冲区,从下面可以看到所有的操作似乎都与之有关。(transient 表示其不可序列化)size: The size...原创 2016-06-14 13:35:52 · 100 阅读 · 0 评论 -
String.substring()方法简单理解
今天有时间,看了下String类中的substring()方法,现简要分析如下:/** * Returns a new string that is a substring of this string. The substring begins * with the character at the specified index and extends to the ...原创 2016-06-15 16:40:29 · 2481 阅读 · 0 评论 -
String.substring()方法简单理解(续)
上一篇博文(http://woyixiaorenne.iteye.com/blog/2305280)说到JDK1.6和1.7的String.substring()的实现出现了变化,那么究竟为什么会变化呢?注:本文大部分内容是参考或者复制作者的内容,附上原文地址http://www.importnew.com/7418.html1、当substring()被调用的时候,内部发生什么事?...原创 2016-06-16 10:19:02 · 650 阅读 · 0 评论