Be real careful with pass by reference in Java

You can pass by reference in java?

If you search for information about java pass by reference and pass by value you’ll get a lot of different info. You’ll find plenty of articles on the subject. Do some digging and you’ll find that java is always pass by value, but there are some times it looks a lot of like pass by reference. Here’s a quick example

import java.util.HashMap;
import java.util.Map;