https://sukhvinder.co.uk/backtobasics-same-vm-everything-in-java-is-pass-by-value/