-2

It seems these two are identical. Does one improve performance over the other for read only variables?

const ant;
final ant;
Stephen D
  • 2,836
  • 4
  • 27
  • 40

1 Answers1

6

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:

Community
  • 1
  • 1
Konstantin Yovkov
  • 62,134
  • 8
  • 100
  • 147