You are on page 1of 1

Naming convention

Type Convention Example


class name or CamelCase convention class Car
interface name class ManageData
Property, method or The first letter of each int age;
variable word should be capitalized String lastName;
except for the first word. float toalOfSalary
All other letters should be
in lower case
package All words in lower case com.example.app
The words may be
separated by dot
constants All words in capital letter float SALES_TAX=4.5
The words are separated int NB_DAYS= 4
by underscore

Link about naming convention:

http://www.oracle.com/technetwork/java/codeconventions-135099.html

You might also like