+ 3
final int prime = 31;
Shoudnt the variable prime be capitalised due to the final keyword?
3 Réponses
+ 20
"final" use to declare a constant and you can set name of constant same as variable.
ex: final int PRIME=31;
+ 8
You're right it's just a convention but not compulsory for someone who didn't care about the standard.
+ 5
Be cool and Follow dem standards!! 😎