<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 閱讀(675) 評論(0)  編輯  收藏 所屬分類: Jave SE 6

    主站蜘蛛池模板: 最新仑乱免费视频| 美女内射无套日韩免费播放| 成年女人18级毛片毛片免费| 亚洲精品熟女国产| 在线观看免费中文视频| 国产成A人亚洲精V品无码性色| 免费无码一区二区| 国产高清视频免费在线观看| 91久久精品国产免费一区| 亚洲动漫精品无码av天堂| 日韩精品久久久久久免费| 亚洲综合激情九月婷婷| aa级一级天堂片免费观看| 亚洲中文字幕久在线| 成全视频在线观看免费高清动漫视频下载| 亚洲综合av一区二区三区| 97人妻精品全国免费视频| 亚洲福利在线观看| 精品福利一区二区三区免费视频| 亚洲无人区视频大全| 成人黄18免费视频| 黄床大片30分钟免费看| 免费看小12萝裸体视频国产| 亚洲va久久久噜噜噜久久狠狠| 亚洲av无码兔费综合| 亚洲精品成人区在线观看| 天堂在线免费观看| jlzzjlzz亚洲乱熟在线播放| 国产亚洲精品第一综合| 激情综合色五月丁香六月亚洲| 久久久国产精品无码免费专区| 四虎免费久久影院| 西西人体免费视频| 亚洲一区二区三区深夜天堂 | 日韩精品极品视频在线观看免费 | 西西大胆无码视频免费| 亚洲AV成人精品一区二区三区| 狠狠亚洲狠狠欧洲2019| 免费能直接在线观看黄的视频 | 免费国产叼嘿视频大全网站| 精品亚洲成α人无码成α在线观看|