+ 3

myage or myAge

I think variable in a class should be called in camel case style: myAge

11th Feb 2017, 5:53 PM
Aleksander Gębicki
Aleksander Gębicki - avatar
3 Answers
+ 20
Yes, you're right. According to the Naming Convention for Java you should use lowerCamelCase syntax for naming variables.
11th Feb 2017, 6:51 PM
Igor Makarsky
Igor Makarsky - avatar
+ 2
Thanks
11th Feb 2017, 10:31 PM
Aleksander Gębicki
Aleksander Gębicki - avatar
+ 1
For Java, betterUseCamelStyle. remember that it is a naming convention not a must.
11th Feb 2017, 11:17 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar