Effective Java第二版变更之 Methods

第2版 Methods

Item 38: Check parameters for validity

Item 39: Make defensive copies when needed

Item 40: Design method signatures carefully

Item 41: Use overloading judiciously

Item 42: Use varargs judiciously
Item 42为新的条目。

Item 43: Return empty arrays or collections, not nulls
Item 43加入了Collections.

Item 44: Write doc comments for all exposed API elements



你可能感兴趣的:(java)