1

Maybe it's simple questions, but I can't find an answer.

Does the classic variable declare as final contain a different segment of memory than the non-final variable?

1 Answers1

1

I would say, speaking about a local variable, no on the basis of this answer:

The truth is, there is no final modifier for local variables at the bytecode level.

Leo Chapiro
  • 13,678
  • 8
  • 61
  • 92