0
is their any possible way to change value of final variable in java..???
5 Answers
+ 6
No, because final is the keyword for 'constant' in Java.
You cannot reassign a primitive to a constant. But you can change the properties of a final declared object after it has been initialized.
Meaning you cannot change the memory reference, but the properties that are stored within the memory scope.
+ 9
Eliya Ben Baruch
My pleasure, hope it helps ;)
https://code.sololearn.com/cc3kT4dBBC7b/?ref=app
+ 1
No, that's the whole purpose of a final variable.
+ 1
Tashi N Can you make a short code for explaining this?