O'Reilly logo
  • You Wang thinks this is interesting:

As a rule of thumb, always use clone whenever you need to return a copy of a mutable field.


Cover of Core Java® Volume I—Fundamentals, Tenth Edition


If getter returns the reference to a mutable object, then the encapsulation is broken.