Basic Naming conventions:

Source: Internet
Author: User

Class, interface naming
Naming conventions: Start with a capital letter, if there are multiple words, each word has uppercase letters, for example: Studentinfo

Class variables, methods, JSP page naming

Naming specification: First letter lowercase, if there are more than one word, after the first letter capital, words and words do not use "_" to do the connection, example Studentname.

Constant naming

Naming conventions: All uppercase letters, such as composed of multiple words, the words are separated by "_", and the constant is public, static, final type, and the static final String user_name;

Interface naming
Naming conventions: Start with the capital letter "I", and if there are multiple words, capitalize each word first letter
Example: Istudentinfo

Interface implementation class naming:
Naming specification: Remove the first letter "I" of the implemented interface name, with "Impl as the end", and if there are multiple words, each word has uppercase letters.
Example: Studentinfoimpl

J2ee+ssh Framework Naming conventions

The Servlet class is named:
Naming conventions: ending with a servlet word
Example: Loginservlet

Basic Naming conventions:

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.