문제

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:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top