0 votes
in JAVA by

What is the use of the final keyword?

1 Answer

0 votes
by

What is the use of the final keyword?

The final keyword is used to declare the final state of an entity in java. The value of the entity cannot be modified at a later stage in the application. The entity can be a variable, class, object, etc.

It is used to prevent unnecessary modifications in a java application.

...