CamelCase in Java naming conventions



Java follows camel casing for objects, class, variables etc. If a name is having multiple words, the first letter is small then consecutive words are joint with the first letter as a capital case. Consider the following example −

Taxation Department

Class - TaxationDepartment

Object - taxationDepartment

Method - getTaxationDepartmentDetails

Variable - taxationDepartment


Advertisements