Why can a calling function see the modified value of an array after it's passed to a called method? I know that
Java is always pass-by-value - Java passes objects as references and those references are passed by value. And since an array is an object, I'd assume it behaves the same as an object - change of an array in a method is not visible outside the method - but it is. Can anyone explains why?
The following code shows that tiger[]'s value is changed outside of funk():