Every language has a standard naming conventions to follow. Java has the following naming conventions those are good to follow while writing code:
Variable naming conventions in Java:
Local variables or class member variables uses lowerCamelCase
Method naming conventions in Java:
The method name should start with a verb. Local methods or class member methods uses lowerCamelCase
Class naming conventions in Java:
Class uses UpperCamelCase
Packages naming conventions in Java:
Packages in Java uses reverse URI approach for naming. com.polopoly.siteengine.model.TopModel
Constants naming conventions in Java:
Constants uses. ALL_CAPS
Comments
Post a Comment