Computer Science, asked by nidhiagarwal, 1 year ago

Name the java keyword that converts variables into constants

Answers

Answered by Dhruv00
9
final is the java keyword that coverts variables into constants.
---------------
Example
int a=5;
final a=5
++a;
Now if you will print a then the output will be 5 not 6 because we have added final before a ,therefore the value of a can't be changed during the whole program.

Dhruv00: hope u like this
Dhruv00: do mark as brainliest
Answered by Angela1234
5
The java keyword that converts variables into constants is final.
Those variables will be changed into constant values which remains the same. But there are some exceptions which cannot be converted.
Thanks
Similar questions