1.

Which of these keywords is used to prevent content of a variable from being modified?(a) final(b) last(c) constant(d) static

Answer» 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.


Discussion

No Comment Found

Related InterviewSolutions