Question: are arraylists passed by reference in java?
Answer: ArrayList) object to a class, will it be automatically updated when I change it? Does the List object passed by reference? Yes, a List that you pass to a method is passed by reference. Any objects you add to the List inside the method will still be in the List after the method returns.