Java Key Concepts - vasanthsumanath/MyWIKI GitHub Wiki
Escape Reference -> (While returning an object its important to understand whether the object reference is immutable and can the calling method mutate this object and its impact). This can be avoided by performing deep copy of the object and returning the object reference there by the calling methods gets a copy and any changes made to the object will not impact the core object. Make use of Interface that will have reference only to readable methods. Make sure all fields are immutable.)