Embed presentation
Download to read offline








Defensive copying involves making copies of objects passed into methods to prevent the caller from modifying the internal state of the object. It is not needed when objects are explicitly handed off in a constructor or when copying is too expensive, such as with model objects like those used by Hibernate.







