Which of these keywords is used to prevent content of a variable from being modified?
(a) final
(b) last
(c) constant
(d) static
(a) final
(b) last
(c) constant
(d) static
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Correct choice is (a) final
Easiest explanation: A variable can be declared final, doing so prevents its content from being modified. Final variables must be initialized when it is declared.