Comments (3)
第10章集合类
1. 175页 小结第4段中
在多线程场景中,如果使用并发容器
-> 同步容器
2. 184/185页代码
3处数字
int aHunderedMillion = 10000000
-> 100000000
初始化容量为5000000
,耗时 -> 50000000
初始化容量为10000000
,耗时 -> 100000000
3. 223页下方
UNTREEIFY_THRESHOLD中,当链表中的法人
节点数量,去掉法人
4. 227页 filter代码注释
改为//Hollis, HollisChuang, H, hollis
是不是更好,空值已经被过滤掉
5. 228页最下方代码
字符串值没有229页图10-35中所示的Hollis666
6. 235页图10-38下方
一级索引6->9->17->26
,改为6->9->17->21->26
是不是更好
from tobetopjavaer.
第11章反射
1. 239页
需要注意的是,上面的几个方法是无法获取私用
的方法 -> 私有
2. 247页
getAttributes方法中,for循环的if块内,String fileName
改为fieldName
是不是更好
最后一句的表述,改为不支持多个Bean之间可能发生嵌套等问题
是不是更好
from tobetopjavaer.
第12章序列化
1. 249页
那么父类页应该集成
java.io.Serializable接口 -> 实现
2. 250页
代码注释中的SerializableDemo2
并没有在此处出现
3. 253/255页
代码注释//将IOException直接抛出
,改为//将Exception直接抛出
是不是更好,毕竟throws了2个异常出来
255页可去掉类ExternalizableDemo2
上方的空注释
4. 258/259页
Java8源码中readObject
方法还有如下两行,不知书中使用的版本是不是没有
// be like clone(), allocate array based upon size not capacity
int capacity = calculateCapacity(elementData, size);
SharedSecrets.getJavaOISAccess().checkArray(s, Object[].class, capacity);
5. 269页
IDEA的配置改为Preferences->Editor->Inspections->Java->Serialization Issues
更好,具体配置项的名称可能也是因版本不同而异,2022.1.3版已经是Serializable non-static inner class without serialVersionUID
from tobetopjavaer.
Related Issues (20)
- 【文字错误】第8章 字符串 HOT 1
- 纸质书深拷贝部分缺少文字 HOT 2
- volatile和synchronized的顺序反了
- 第一章中关于多态,是不是写错了
- Vector介绍是不是错了? HOT 2
- 【纸质书勘误】第10章集合类代码与结果错误
- 【文字勘误】第八章:字符串,8.5.3,P86 HOT 1
- 【文字勘误】第八章:字符串,8.5.3,P86 HOT 1
- 第八章 字符串
- 【文字勘误】12.8.2 AutoType何错之有 P292
- 第十章10.1 java的集合体系
- 字符串常量池问题
- 求更新求完善!!! HOT 2
- unpkg.com经常无法访问,导致项目无法打开,建议更换阿里源,谢谢
- 第八章114页字符串常量池 Java17
- 值传递和引用传递的描述是不是错了
- 可忽略(错别字)
- instanceof 示例代码大括号搞到了外面
- intern()返回值错误
- 【第五章】值传递,图片错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tobetopjavaer.