1, the project name all lowercase 2, the package name all lowercase 3, the class name capitalized, generally use the hump-type naming. 4, the variable name, the method name first letter lowercase, if the name is composed of multiple words, the first letter of each word should be capitalized. 5, the constant name all uppercase; "Project layering (package name) naming" The general company is named "com. Company name." Project name. Module name .... The package naming specification for the servlet class: Web.servlet; custom Label class package naming specification: Web.tags; package naming specification for filter class: Web.filter; JavaBean implementing Interface naming specification: Web.service; DAO Is the operation of the database: Entity class class in Web.dao;dao (operation on database) naming specification: Web.dao.impl;dao interface class naming specification: Web.dao.inter; POJO entity class naming specification: Web.pojo;
(An entity class corresponds to a table in a database, and the rows in the table correspond to the attributes of the entity Class)
The global public class, the interface class is the package naming specification: Project name. Global; Package naming specification: project name. Utils;
Java Project Naming conventions