title: Is it good practice to pass references of objects to methods in java?
body: <p>Is it acceptable style to pass an object reference to a method (as a parameter) and modify the object in that method, or should that method return a reference to a new object? What is the best practice and why?</p>