Suppose I am writing a method foo(int i) in Java. Since i is passed by value it is safe to change it in foo. For example
foo(int i)
i
foo
Neutral. But it would be considered a better practice by many people to change the method to:
void foo(final int i) { int j = i + 1; // not change i ... }
Feel free to work either way.