Basically same question as above, if an ArrayList is passed to a constructor of an object, is it passed by reference or value?
In the example below, once I create the TickHistory object and pass an arraylist to it, if I later change the arraylist that I passed, will it also change in the TickHistory object instance?
public class TickHistory {
    List<Tick> ticks;
    String period;
    String name;
    Integer year;
    public TickHistory(String name, String period, Integer year, List<Tick> ticks){
        this.name=name;
        this.period=period;
        this.year=year;
        this.ticks=ticks;
    }
}
 
     
    