I see some codes that have method implementation
as
public void setVariables(final int value){
this.value=value;
}
why is the final
keyword used in the parameter.
why not declare
public void setVariables(int value){
this.value=value;
}
I understand that for classes
defined inside methods
that access method parameters
, they have to declared final
what exactly is the benefit of having final
keyword in parameter
?