The ________ keyword is used to declare objects that cannot change.

  • final
  • static
  • transient
  • volatile
The final keyword in Java is used to declare objects that cannot change after they are initialized. It can be applied to variables, methods, and classes to make them unmodifiable, constant, or not extendable, respectively.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *