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

Updated on: 30-Jul-2019

686 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements