"Original" JAVA SE coding specification

Source: Internet
Author: User
Tags java se

/*
* Coding Specification:
* 1, all the names follow the "see the name of the understanding" principle
* 2, all the names do not allow the use of Chinese characters or pinyin
* 3, Java Engineering naming recommendations using lowercase, such as: OA, CRM, CMS ...
* 4, package names use lowercase, for example: Cn.yeah, Com.ali, Com.baidu 、...
* 5, the name of the class name, interface name:
* 1) The name has only one word, the first letter capitalized, for example: Hello, person 、...
* 2) There are multiple words in the name, the first letter of each word is capitalized, for example: HelloWorld, Testperson 、...
* 6, the name of the method names:
* 1) There is only one word in the name, the first letter is lowercase, for example: Main, say 、...
* 2) There are multiple words in the name, the first letter is lowercase, and the first letter of the other words is capitalized, for example: Testsay, Showmoney 、...
* 7. Name of the variable: (and the name of the method name is consistent)
* 1) There is only one word in the name, the first letter is lowercase, for example: Main, say 、...
* 2) There are multiple words in the name, the first letter is lowercase, and the first letter of the other words is capitalized, for example: Testsay, Showmoney 、...
* 8, the name of the constant:
* 1) Only one word in the name, all letters are capitalized, for example: PI 、...
* 2) There are multiple words in the name, all the letters are capitalized, the words are connected with the words using the underscore _, for example: Session_spring 、...
*/

"Original" JAVA SE coding specification

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.