Call by Value
All of this is to say that all parameters to Java methods are “call by value”
If you pass a boolean, e.g. to a method, it’s parameter is a copy of whatever value was being passed
The method does not change the original variable’s value
Previous slide
Next slide
Back to first slide
View graphic version