Naming convention in Java
In java, when we assign name to identifiers such as class, package,method,variables etc. ,there are certain conditions which should be followed.It is not mandatory, but right way to do that.
It improves the readability of the code.
|should be noun and start with uppercase. Try to keep name simple and descriptive.
|Should be verb. First letter should be lower case and any internal word should start with uppercase
|Packages Should be lowercase. Subsequent components may vary from organisation to organisation.
|Should start with upercase
|Should start with lowercase. Avoid using underscore_ and dollor sign$.
|int i, double myMoney
|Should be all uppercase. Separate words with underscore_ if more than one words.
|MIN_WIDTH, MAX_LENGTH, COLOR