标签:
ref: book "Effective Java"
1. consider static factory methods instead of constructord
2. consider a builder when faced with many constructor parameters
3. enforce the singleton property with a private constructor or an enum type
4. enforce noninstantiability with a private constructor
5. avoid creating unnecessary objects
6. avoid finalizer
2. creating and destroying objects
标签:
原文地址:http://www.cnblogs.com/morningdew/p/5645071.html