Skip to content

Commit 3a89cd2

Browse files
committed
[feat]Java部分内容更新
1 parent 91f89a1 commit 3a89cd2

File tree

3 files changed

+207
-407
lines changed

3 files changed

+207
-407
lines changed

docs/java/Java基础知识.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ String 中的对象是不可变的,也就可以理解为常量,线程安全
251251
- **装箱**:将基本类型用它们对应的引用类型包装起来;
252252
- **拆箱**:将包装类型转换为基本数据类型;
253253

254+
更多内容见:[深入剖析Java中的装箱和拆箱](https://www.cnblogs.com/dolphin0520/p/3780005.html)
255+
254256
## 14. 在一个静态方法内调用一个非静态成员为什么是非法的?
255257

256258
由于静态方法可以不通过对象进行调用,因此在静态方法里,不能调用其他非静态变量,也不可以访问非静态变量成员。

0 commit comments

Comments
 (0)