It seems these two are identical. Does one improve performance over the other for read only variables?
const ant;
final ant;
const
(and goto
) is never used. It's just a reserved keyword in Java.
Note that when using const
(or goto
) the code doesn't even compile.
More info: