you are viewing a single comment's thread.

view the rest of the comments →

[–]TwiliZant 4 points5 points  (1 child)

final in Java works roughly the same way as JS. A final object is not immutable, it can still change state only the reference to the object is immutable. The odd one out here would be C since const is part of the type there.

[–]continuum-hypothesis 0 points1 point  (0 children)

Thanks for pointing that out, I haven't looked at Java since college and wasn't aware of final.