← BYTES
Java·Starter·Ref: 9.1.5
What does the `final` keyword do when applied to a variable in Java?
Have a question about this video? Mention reference 9.1.5 when you contact us.
a.Makes the variable static
b.Deletes the variable after use
c.Prevents the variable's reference/value from being reassigned after initialization
d.Makes the variable private automatically
A final variable can only be assigned once; for object references, this means the reference can't be reassigned to point elsewhere (though the object itself may still be mutable, unless it's also immutable).
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES915#Java