Effective Java
Joshua Bloch

Creating and Destroying Objects
  1. Consider providing static factory methods instead of constructors
  2. Enforce the singleton property with a private constructor
  3. Enforce noninstantiability with a private constructor
  4. Avoid creating duplicate objects
  5. Eliminate obsolete object references
  6. Avoid finalizers
Methods Common to All Objects
  1. Obey the general contract when overriding equals
  2. Always override hashCode when you override equals
  3. Always override toString
  4. Override clone judiciously
  5. Consider implementing Comparable
Classes and Interfaces
  1. Minimize the accessibility of classes and members
  2. Favor immutability
  3. Favor composition over inheritance
  4. Design and document for inheritance or else prohibit it
  5. Prefer interfaces to abstract classes
  6. Use interfaces only to define types
  7. Favor static member classes over nonstatic
Substitutes for C Constructs
  1. Replace structures with classes
  2. Replace unions with class hierarchies
  3. Replace enum constructs with classes
  4. Replace function pointers with classes and interfaces
Methods
  1. Check parameters for validity
  2. Make defensive copies when needed
  3. Design method signatures carefully
  4. Use overloading judiciously
  5. Return zero-length arrays, not nulls
  6. Write doc comments for all exposed API elements
General Programming
  1. Minimize the scope of local variables
  2. Know and use the libraries
  3. Avoid float and double if exact answers are required
  4. Avoid strings where other types are more appropriate
  5. Beware the performance of string concatenation
  6. Refer to objects by their interfaces
  7. Prefer interfaces to reflection
  8. Use native methods judiciously
  9. Optimize judiciously
  10. Adhere to generally accepted naming conventions
Exceptions
  1. Use exceptions only for exceptional conditions
  2. Use checked exceptions for recoverable conditions and run-time exceptions for programming errors
  3. Avoid unnecessary use of checked exceptions
  4. Favor the use of standard exceptions
  5. Throw exceptions appropriate to the abstraction
  6. Document all exceptions thrown by each method
  7. Include failure-capture information in detail messages
  8. Strive for failure atomicity
  9. Don't ignore exceptions
Threads
  1. Synchronize access to shared mutable data
  2. Avoid excessive synchronization
  3. Never invoke wait outside a loop
  4. Don't depend on the thread scheduler
  5. Document thread safety
  6. Avoid thread groups
Serialization
  1. Implement Serializable judiciously
  2. Consider using a custom serialized form
  3. Write readObject methods defensively
  4. Provide a readResolve method when necessary