<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

    主站蜘蛛池模板: 一级毛片在线免费视频| 亚洲人成免费网站| 国产在线19禁免费观看| 亚洲变态另类一区二区三区| 男男黄GAY片免费网站WWW | 亚洲精品精华液一区二区| 美女视频黄的全免费视频 | 污污网站免费观看| 午夜小视频免费观看| 久久亚洲综合色一区二区三区| 久久久久久久国产免费看| 久久精品国产精品亚洲蜜月| 久久久久免费精品国产| 亚洲综合激情另类小说区| 精品国产污污免费网站入口 | 无码一区二区三区AV免费| 国产成人亚洲精品影院| 两性色午夜免费视频| 四虎www成人影院免费观看| 色综合久久精品亚洲国产| 手机在线看永久av片免费| 亚洲色大成网站www久久九| 四虎国产精品免费视| 亚洲人成电影在线观看青青| 成人午夜免费福利| 亚洲成av人片在线看片| 女人18毛片水真多免费播放| 日产久久强奸免费的看| 日本牲交大片免费观看| 四虎必出精品亚洲高清| 成人免费的性色视频| 婷婷亚洲综合五月天小说在线| 最近2019中文字幕免费看最新| 无套内谢孕妇毛片免费看看| 亚洲Av综合色区无码专区桃色| 国国内清清草原免费视频99| 一边摸一边爽一边叫床免费视频| 久久久亚洲欧洲日产国码二区| 浮力影院第一页小视频国产在线观看免费 | 97精品免费视频| 国产综合成人亚洲区|