Effective Java Programming Language Guide
Joshua Bloch
- 出版商: Addison Wesley
- 出版日期: 2001-06-15
- 售價: $2,170
- 貴賓價: 9.5 折 $2,062
- 語言: 英文
- 頁數: 272
- 裝訂: Paperback
- ISBN: 0201310058
- ISBN-13: 9780201310054
-
相關分類:
Java 程式語言
已過版
買這商品的人也買了...
-
$2,176Refactoring: Improving the Design of Existing Code (Hardcover)
-
$2,610$2,480 -
$650$553 -
$980$774 -
$970Introduction to Algorithms, 2/e
-
$1,150$1,127 -
$950$855 -
$1,710$1,625 -
$880$695 -
$1,274Computer Architecture: A Quantitative Approach, 3/e(精裝本)
-
$760$600 -
$590$466 -
$690$538 -
$720$569 -
$820$804 -
$750$675 -
$560$504 -
$450$356 -
$480$379 -
$750$593 -
$780$616 -
$490$382 -
$650$507 -
$650$507 -
$720$569
相關主題
商品描述
Description
Effective Java is an explicit (and acknowledged) homage to Scott Meyer's Effective C++. Josh Bloch shares the programming practices of the most expert Java programmers with the rest of the programming community. Distilling the habits of experienced programmers into 50 short stand-alone essays, Bloch has laid out the most essential and effective Java rules, providing comprehensive descriptions of techniques. The essays address practical problems that all Java programmers encounter, presents specific ways to improve programs and designs, and also shows how to avoid traps in Java programming. An enormously useful book, each essay contains top notch code examples and insightful "war stories" that help capture the students' attention.
CS0628:
Java--Intermediate Programming
Table Of Contents
CHAPTER = Foreword. Preface.Acknowledgements.
1. Introduction.
2. Creating and Destroying Objects.
Enforce the Singleton Property with a Private Constructor.
Enforce Noninstantiability with a Private Constructor.
Avoid Creating Duplicate Objects.
Eliminate Obsolete Object References.
Avoid Finalizers.
3. Methods Common to All Objects.
Always Override HashCode When You Override Equals.
Always Override toString. Override Clone Judiciously.
Consider Implementing Comparable.
4. Classes and Interfaces.
Favor Immutability. Favor Composition Over Inheritance.
Design and Document for Inheritance or Else Prohibit It.
Prefer Interfaces to Abstract Classes. Use Interfaces Only to Define Types.
Favor Static Member Classes Over Non-Static.
5. Substitutes for C Constructs.
Replace Unions with Class Hierarchies.
Replace Enums with Classes.
Replace Function Pointers with Classes and Interfaces.
6. Methods.
Make Defensive Copies when Needed.
Design Method Signatures Carefully.
Use Overloading Judiciously.
Return Zero-Length Arrays, Not Nulls.
Write Doc Comments for All Exposed API Elements.
7. General Programming.
Know and Use the Libraries.
Avoid Float and Double if Exact Answers are Required.
Avoid Strings where Other Types are More Appropriate.
Beware the Performance of String Concatenation.
Refer to Objects by their Interfaces.
Prefer Interfaces to Reflection.
Use Native Methods Judiciously.
Optimize Judiciously.
Adhere to Generally Accepted Naming Conventions.
8. Exceptions.
Use Checked Exceptions for Recoverable Conditions.
Runtime Exceptions for Programming Errors.
Avoid Unnecessary Use of Checked Exceptions.
Favor the Use of Standard Exceptions.
Throw Exceptions Appropriate to the Abstraction.
Document All Exceptions Thrown by Each Method.
Include Failure-Capture Information in Detail Messages.
Strive for Failure Atomicity.
Don't Ignore Exceptions.
9. Threads.
Avoid Excessive Synchronization.
Never Invoke Wait Outside a Loop.
Don't Depend on the Thread Scheduler.
Document Thread-Safety.
Avoid Thread Groups.
10. Serialization.
Consider Using a Custom Serialized Form.
Write ReadObject Methods Defensively.
Provide a ReadResolve Method when Necessary.
References.
Index. 0201310058T04232001