Category Archives: java

Peter Haggar: Practical Java

•Use static, final, private methods to allow inlining •To implement an immutable class -declare all data private -no setter methods -set all data in the constructor only -declare class final(no surclassing) -clone mutable objects before returning a ref to them … Continue reading

Posted in java | Leave a comment