0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Effective Java 第3版まとめ(項目7)

Posted at

項目7.使われなくなったオブジェクト参照を取り除く

書かれている内容

  • メモリ管理については考える必要がないという印象を持ってしまいがちだが、それは間違い
  • オブジェクト参照にnullを設定することは、普通というよりむしろ例外であるべき
  • クラスが独自のメモリを管理しているときには、メモリリークに対して注意を払うべき
    (要素が解放されるときには、すべてのオブジェクト参照にnullを設定すべき)
  • キャッシュもメモリリークのよくある原因
  • リスナーやコールバックもメモリリークのよくある原因
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?