Skip to content

Commit a2c27c2

Browse files
committed
Updated.
1 parent 79fc2af commit a2c27c2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,5 @@ Caused by: java.lang.ClassNotFoundException: com.xfoss.learningJava.PhraseOMatic
8282
- [了解Java API:使用Java的库](docs/Ch06_Get_to_Know_The_Java_API_Using_the_Java_Library.md)
8383
- [继承与多态:追求对象村的更好生活](docs/Ch07_Inheritance_and_Polymorphism_Better_Living_in_Objectville.md)
8484
- [接口与抽象类](docs/Ch08_Interfaces_and_Abstract_Classes.md)
85+
- [构造器与垃圾回收](docs/Ch09_Constructors_and_Garbage_Collection_Life_and_Death_of_an_Object.md)]
8586
- [获得GUI:一个甚为形象的故事](docs/Ch12_Getting_GUI_A_Very_Graphic_Story.md)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 构造器与垃圾回收:对象的生命与死亡
2+
3+
**对象生下来又死去(Objects are born and objects die)**。你负责了某个对象的生命周期。你决定何时及怎样去 **构造** 他。你决定何时去 **摧毁** 他。即使你没有亲自去 *摧毁* 某个对象,也是有意无意的 *抛弃* 了他。而一旦某个对象被抛弃,无情的 **垃圾收集器(Garbage Collector, gc)** 就会让他消失,收回该对象所占用的内存。

0 commit comments

Comments
 (0)