+ 1

What is use of final keyword in java ?

19th May 2018, 9:20 AM
virendra kumar
virendra kumar - avatar
3 Answers
+ 10
to declare constants.A constant is a variable whose value cannot be changed. final int deck=5; deck=7; //error
19th May 2018, 9:36 AM
᠌᠌Code X
᠌᠌Code X - avatar
0
thanks
12th Jan 2019, 9:09 AM
virendra kumar
virendra kumar - avatar