Chapter 1 Introduction Chapter 2 to create and destroy objects Article 1: Consider static factory methods instead of constructors Article 2: dealing with multiple constructor parameters to consider when building a device with the Article 3: Use private constructor, or pieces of Singleton property type move to strengthen Article 4: Adoption of the private constructor can not be instantiated to strengthen the capacity of Article 5: Avoid creating unnecessary objects Article 6: the elimination expired object reference Article 7: Avoid using the end of the function in Chapter 3 for the all objects are a common method of Article 8: rewriting equals when you agree to comply with common Article 9: rewriting equals the total to be reversed when the hashCode
Article 10: Always have to rewrite toString
Article 11: carefully rewrite clone
Article 12: Considering the Comparable interface implementation classes and interfaces in Chapter 4 Article 13: To enable members of the class and accessibility to minimize Article 14: In the public class methods to use to access the public domain rather than Article 15: Making Non - to minimize variability of Article 16: Composite precedence over Article 17 of the succession: either designed for inheritance, and provide documentation or a ban on the succession of Article 18: Interface better than the abstract class Article 19: The interface is only used to define the type of the first 20: Class hierarchy better than the tag, class 21: The strategy function object that Article 22: to give priority to a static member class in Chapter 5 Generic Article 23: Please do not use the new code section 24 of the original ecosystem types: elimination of non-subjects warned Article 25: The list takes precedence over an array of Article 26: to give priority to generic Article 27: to give priority to generic method Article 28: The use of a restricted wildcard API to enhance the flexibility of Article 29: to give priority to type-safe enumeration heterogeneous containers Chapter 6 and Article 30 Note: Use enum instead of int constants, Article 31: Use instance fields instead of ordinals Article 32: The EnumSet bit field instead of Article 33: The ordinal number instead of EnumMap Index Article 34: The interface to simulate a scalable enumeration Article 35: annotations take precedence over naming patterns Article 36: insist on using Override annotations Article 37: The type of marker interface definitions in Chapter 7 means Article 38: Check parameters the validity of Article 39: The copy protection when necessary, Article 40: Design method signatures carefully Article 41: caution overloaded Article 42: caution variable parameters (varargs)
Article 43: Return zero-length arrays or collections, not null
Article 44: for all the exported API element in the preparation of documentation comments in Chapter 8 General Programming Article 45: The local variables to minimize the scope of Article 46: for-each loop for loop takes precedence over the traditional Article 47: Understanding and the use of libraries Article 48: If you need accurate answers, please avoid using float and double
Article 49: The original language take precedence over the type of primitive type of packing Article 50: If the other type is more suitable, then try to avoid using strings Article 51: Understanding the performance of string concatenation Article 52: reference to an object through the interface section 53: Interface takes precedence over reflection Article 54: Prudent use of native methods Article 55: carefully optimized Article 56: Compliance with generally accepted naming convention Chapter 9, Article 57 exception: only for abnormal conditions that the use of Abnormal Article 58: The conditions for the use of recoverable abnormal subjects, to programming errors using run-time exceptions Article 59: Avoid unnecessary use of subjects with abnormal Article 60: to make use of the standard exceptions Article 61: throw and abstract corresponding to the Article 62 exception: Each method throws an exception must have documentation of all Article 63: In the details of the message contains the failure - to capture information on Article 64: failure of efforts to maintain the atomic nature of Article 65: Do not Chapter 10 Concurrency Exception ignored Article 66: synchronized access to the shared variable data Article 67: Avoid excessive synchronization Article 68: executor and the task priority thread Article 69: Concurrent tool precedence wait and notify
Article 70: the document thread-safety of Article 71: Delay initialization used with caution in Article 72: Do not rely on the thread scheduler Article 73: Avoid thread groups Chapter 11 of the serialization Article 74: carefully to achieve Serializable
Article 75: Consider using a custom serialized form of Article 76: Protection of readObject method to write Article 77: For instance control, enumerated types of priority readResolve
Article 78: Consider serialization proxies instead of using serialized instances
Following the annex effective java is often used to illustrate







