Call by Value.
Java uses call by value for parameter passing, which means that the content (the value) of a variable is sent to a method when the variable is used as a parameter. The picture shows the situation just as the method gets control.
The value 27 from main()'s variable value
has been copied into the parameter x.
If the zero() method now changes x to zero,
what happens to value in main()?