[feast 06](添加第6章第翻译,截至 方法重载) #80
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
额,看到这章突然没了😂。因此尝试着边看英文版边翻译,打算翻译一遍后再校对下。以我目前对初始化和清理的理解,有以下几点:
1)初始化的顺序问题:成员变量,静态变量,静态代码块,代码块,构造方法的执行顺序,再复杂些,来个父子类,搞懂顺序是目的
2)清理这里就更重要了。
1) 怎么清理的? ----> 垃圾收集算法(GC策略)标记清理、复制、标记清除等等
2) 清理哪些对象? ----> 不可达的对象 ----> 不可达的判断依据
3) 清理时机? ----> 什么时候清理
4) 清理的对象在哪里?----> JVM内存分配,堆上 ----> 堆上具体是哪块?----> Eden or Survivor
5) ...