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

    主站蜘蛛池模板: 亚洲粉嫩美白在线| 最新亚洲人成无码网www电影| 77777_亚洲午夜久久多人| 亚洲国产精品一区二区久| 免费看无码特级毛片| A级毛片内射免费视频| 亚洲精品午夜久久久伊人| 1000部拍拍拍18免费网站| 四虎影在线永久免费四虎地址8848aa| 亚洲午夜无码久久久久| 中文字幕版免费电影网站| 亚洲动漫精品无码av天堂| 无码少妇精品一区二区免费动态| 久久精品国产亚洲av水果派 | 好湿好大好紧好爽免费视频| 全亚洲最新黄色特级网站| 亚洲性一级理论片在线观看| 真人做A免费观看| 国产精品亚洲五月天高清| 亚洲熟伦熟女新五十路熟妇| 国产在线精品一区免费香蕉| 久久久久亚洲AV无码专区首| 美女啪啪网站又黄又免费| 成年黄网站色大免费全看| 亚洲欧美日韩国产成人| 18成禁人视频免费网站| 亚洲欧洲日产国码无码网站 | 国产亚洲精品bv在线观看| 国产无遮挡吃胸膜奶免费看| 国产精品极品美女自在线观看免费| 成年女人色毛片免费看| 亚洲精品日韩中文字幕久久久| 一二三四免费观看在线视频中文版| 亚洲一卡2卡三卡4卡有限公司| 国产在线a免费观看| 亚洲国产品综合人成综合网站| 国产成人高清精品免费软件| 精品国产污污免费网站| 亚洲精华国产精华精华液| 国产av天堂亚洲国产av天堂 | 亚洲一级特黄大片无码毛片|