An object like an aray, map or list can mimic this behavior as you can change its value in the method and it will be changed when it returns from the method.
An object like an aray, map or list can mimic this behavior as you can change its value in the method and it will be changed when it returns from the method.