Java Project Naming conventions

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.