I did not quite understand the concept of naming with capital letters.
I know which classes should be named with the first capital letters (CamelCase), but what about objects, variables, and other identifiers?
I did not quite understand the concept of naming with capital letters.
I know which classes should be named with the first capital letters (CamelCase), but what about objects, variables, and other identifiers?
This is just a naming convention, there is no need to follow, at least in Java and most languages. Some take it so seriously that it is not required that they themselves do not keep a pattern. Java even errs in some things, albeit rarer.
This is important for a person not having to think hard when writing code and keep it that way, while helping to read since the written form already gives a better visual indication of what it is.
Methods and class, instance, or local variables must be pascalCase. It is recommended that you do not use _
even if you can.
You have a complete guide to C # , which helps you think a lot. Of course Java follows somewhat different standards. You have to like me more than one or the other. There are those who curse the fact that constants and enumerations in Java are ALL_CAPS or methods are pascalCase, there are those who think only this way is good.
The important thing is to adopt and a standard and follow. Ugly, inconsistent code is hard to read. If you adopt the language pattern it will also help those not accustomed to having their code read.