Home » JAVA Programming » Arrays » Question
  1. Which of these keywords is used to prevent content of a variable from being modified?
    1. last
    2. constant
    3. static
    4. final
    5. None of these
Correct Option: D

A variable can be declared final, doing so prevents its content from being modified. Final variables must be initialized when it is declared.



Your comments will be displayed only after manual approval.