The final java keyword for variables means that it will only get a value once, right?
If I have multiple variables in a function and I know they should not receive any value later, is it good to declare them as "final"?
void foo() {
final int a = 0;
// executa alguma coisa
final int b = 0;
// ...
final String a = "a";
}
Will this final statement make any important difference in compiled code? Will you gain / lose performance?