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?

2
  • 2
    Can you show an example of what you mean? I've not come across the term "classic variable" before. Commented Oct 17, 2019 at 11:49
  • Like: what context? You can declare variables as fields, static fields, or as local thing within a method. Commented Oct 17, 2019 at 11:58

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Who says he is talking about local variables?
@GhostCat The OP wrote: "the classic variable". I think that is what he/she means by that.
That is an interpretation. Point is: the question is actually unclear.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.