Question: are maps passed by reference java?
Answer: 4 Answers. Java always uses the pass-by-value concept to pass the arguments. In the scenario mentioned, the reference to the HashMap itself is passed by value. The valueMap refers to the same object as the inputMap since both of them are referring to the same object.