<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Scott@JAVA

    Java, 一杯濃濃的咖啡伴你到深夜

    《Effective Java》Study Notes



    Programming Language Guide
    by Joshua Bloch
    Foreword by Guy Steele

    Clike on the chapter title to see the notes, respectivelly.


    Chapter 1. Introduction

    No compelling words, neglect.

    Chapter 2. Creating and Destorying Objects 

    Item 1: Consider providing static factory methods instread of constructs
    Item 2: Enforce the singleton property with a private constructor
    Item 3: Enforce noninstantiability with a private constructor
    Item 4: Avoid creating duplicate objects
    Item 5: Eliminate obsolete object reference
    Item 6: Avoid finalizers

    Chapter 3. Methods Common to All Objects

    Item 7: Obey the general contract when overriding
    equals
    Item 8: Always override hashCode when you override equals
    Item 9: Always override toString

    Item 10: Override clone judiciously
    Item 11: Consider implementing Comparable

    Chapter 4. Classes and Interfaces

    Item 12: Minimize the accessibility of classes and members
    Item 13: Favor immutability
    Item 14: Favor composition over inheritance

    Item 15: Design and document for inheritance or else prohibit it
    Item 16: Prefer interfaces to abstract classes
    Item 17: Use interfaces only to define types
    Item 18: Favor static member classes over nonstatic

    Chapter 5. Substitutes for C Constructs

    None of my business, neglect.

    Chapter 6. Methods

    Item 23: Check parameters for validity
    Item 24: Make defensive copies when needed
    Item 25: Design method signatures carefully
    Item 26: Use overloading judiciously
    Item 27: Return zero-length arrays, not nulls

    Item 28: Write doc comments for all exposed API elements

    Chapter 7. General Programming

    Item 29: Minimize the scope of local variables
    Item 30: Know and use the libraries
    Item 31: Avoid float and double if exact answers are required
    Item 32: Avoid strings where other types are more appropriate
    Item 33: Beware the performance of string concatenation
    Item 34: Refer to objects by their interfaces
    Item 35: Prefer interfaces to reflection
    Item 36: Use native methods judiciously

    Item 37: Optimize judiciously
    Item 38: Adhere to generally accepted naming conventions

    posted on 2005-12-16 18:03 Scott@JAVA 閱讀(677) 評(píng)論(0)  編輯  收藏 所屬分類: Jave SE 6

    主站蜘蛛池模板: a毛片免费全部播放完整成| 麻豆亚洲AV成人无码久久精品 | 亚洲av日韩综合一区二区三区| 黄网站色视频免费看无下截| 成人性生免费视频| 亚洲国产精品自在自线观看| 中文字幕久无码免费久久| 亚洲欧洲精品无码AV| 国产一区二区三区免费观在线| 女人被弄到高潮的免费视频| 亚洲日韩AV一区二区三区四区 | 亚洲人成网亚洲欧洲无码久久| 自拍日韩亚洲一区在线| 2021国产精品成人免费视频| 亚洲一区精彩视频| 国产片免费福利片永久| 国产高潮久久免费观看| 国产成人免费a在线资源| 在线视频亚洲一区| 亚洲色无码一区二区三区| 无码av免费网站| 亚洲人成无码网站在线观看| 91免费国产精品| 国产成人无码综合亚洲日韩| 在线观看亚洲免费| 亚洲最大AV网站在线观看| 99久久免费观看| 亚洲欧美不卡高清在线| 亚洲精品无码你懂的网站| 久久午夜伦鲁片免费无码| 亚洲性无码AV中文字幕| 在线观看亚洲精品国产| 8x成人永久免费视频| 亚洲AV成人片色在线观看高潮| CAOPORM国产精品视频免费| 亚洲AV日韩精品久久久久久| a级成人毛片免费视频高清| 亚洲av无码国产综合专区| 亚洲精品成人a在线观看| 国产成人精品日本亚洲语音| 亚洲国产精品无码中文字|