Subsequent components of the package name vary according to an organization’s own internal naming conventions. Such conventions might specify that certain directory name components be division, department, project, machine, or login names.
Class names should be nouns, in mixed case with the first letter of each internal word capitalized. Try to keep your class names simple and descriptive.
Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).
Interface names should be capitalized like class names.
Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed.
One-character variable names should be avoided except for temporary “throwaway” variables.
Common names for temporary variables are i, j, k, m, and n for integers; c, d, and e for characters
ANSI constants should be avoided, for ease of debugging.
Java follows camel case naming convention.
- Constant should be in Uppercase.
- The variable name should start with lowercase.
- Method name starts with lowercase and it should be a verb.
- package name starts with lowercase.
- interface name should start with a uppercase letter.
- The class name should start with a uppercase letter.
if we want to make a variable whose name is myarray- (it consists of my and array). so make the “A” of array in upper case.