: Click to open Link
(need resources 0 points of contact me ~) "Effective Java Chinese version (2nd edition)" Main content: in Java programming 78 very practical rules of experience, these rules of experience cover the problems faced by most developers every day solutions. A comprehensive description of the technologies used by the Java platform design experts reveals what should be done and what should not be done to produce clear, robust, and efficient code. Version 2nd reflects the most important changes in Java 5 and deletes obsolete content. Each rule in the effective Java Chinese version (2nd edition) appears as a short, separate, small article and is further explained by the sample code. The effective Java Chinese version (2nd edition) includes: New generics, enumerations, annotations, auto-boxing, For-each loops, mutable parameters, concurrency mechanisms, and so on. New technologies and best practices for classic themes, including objects. classes, class libraries, methods, and serialization.
How to avoid the subtleties that are often misunderstood in the Java programming language: pitfalls and pitfalls.
Media Review
"I wish I had this book 10 years ago. Someone might think I don't need any books on Java, but I need this book. "The father of--java James GoslingCatalogue
Foreword preface of the Translator 1th Chapter Introduction 2nd Chapter Create and destroy an object 1th: Consider replacing the constructor with a static factory method 2nd: Consider using the builder 3rd bar when encountering multiple constructor parameters: use a private constructor or enum type to harden the Singleton property 4th bar: The ability to harden non-instancing through a private constructor 5th: Avoid creating unnecessary objects 6th bar: Eliminate outdated objects Reference 7th: Avoid using the Finalization method, chapter 3rd Methods common to all objects 8th: When overriding equals, follow the general Conventions 9th: Overwrite equals when always overwrite hashcode 10th: always overwrite the tostring 11th: carefully overwrite the clone 12th: Consider implementing the comparable interface 4th Chapter Classes and Interfaces 13th: Minimizing the accessibility of classes and members 14th: Using access Methods in public classes instead of public domain 15th: minimizing variability 16th: compound takes precedence over inheritance 17th: It is either designed for inheritance, and provides documentation descriptions, Or it's forbidden to inherit 18th: interface is better than abstract class 19th: interface is only used for defining type 20th: Class hierarchy is better than label class 21st: Use function object to represent policy 22nd: Prioritize static member class 5th chapter Generic 23rd: Do not use the original ecological type in the new Code 24th: Elimination of non-inspected warnings 25th: List takes precedence over the array 26th: prioritize generic 27th: Prioritize generic methods 28th: Leverage the flexibility of the restricted wildcard Fraiti API 29th bar: Prioritize type-safe heterogeneous containers 6th Chapter Enumerations and annotations 30th: Substituting an enum with an int constant 31st: Substituting an instance field for the ordinal 32nd: using Enumset instead of the bit field 33rd bar: Using Enummap instead of ordinal index 34th bar: Simulating a scalable enumeration with an interface the 35th bar: annotations take precedence over named patterns 36th: Persist with override annotations 37th: Defining the type with the tag interface Chapter 7th method 38th: Check the validity of the parameter 39th: protective Copy if necessary 40th: Careful design method signature 41st: Use heavy-duty 42nd: Use the variable-parameter 43rd: to return an array or set of 0 lengths, Instead of: null 44th: Document comments for all exported API elements Chapter 8th general programming 45th: Minimizing scope of local variables 46th: The For-each loop takes precedence over the traditional for loop 47th bar: Understanding and using the Class library 48th: If you need an accurate answer, Avoid using float and double 49th: The base type takes precedence over the boxed base type 50th: If other types are more appropriate, Try to avoid using the string 51st: Beware of the performance of string connections 52nd: referencing objects by Interface 53rd article: interface takes precedence over reflection mechanism 54th: Use the Local method carefully55: Careful optimization 56th: adherence to universally accepted naming Conventions Section 9th exception 57th: Exceptions are used only for exceptions 58th: Use exceptions for recoverable cases, Using run-time exceptions for programming errors 59th: Avoid unnecessary use of the exception that is being examined 60th: precedence using the standard exception 61st: throws an exception corresponding to the abstract 62nd: Each method throws an exception with a document 63rd: Contains the information that can capture the failure in the detail message 64th: Try to keep the failure in the atomicity 65th: No to ignore exceptions, chapter 10th Concurrent 66th: Synchronizing access to shared variable data 67th: Avoid over-synchronizing 68th: Executor and task priority main route 69th: Concurrency tool takes precedence over wait and notify 70th: Document of thread security 71st: Use lazy initialization to initialize the 72nd bar: Do not rely on thread scheduler 73rd: Avoid using thread groups Chapter 11th serialization 74th: Implement the Serializable interface cautiously 75th: Consider using a custom serialization form 76th: Write the ReadObject method in a protective way 77th: for instance control, Enum type takes precedence over Readresolve 78th: Consider using a serialization agent instead of a serialized instance Appendix 1th and 2nd edition entries against Chinese and English terms reference
"ebook" Effective Java Chinese version download