The naming habit of Java

Source: Internet
Author: User

The naming habit of Java

By looking at the JDK documentation, the reader can find the declaration of the class in the JDK, the declaration of the method, the constant
The declaration has a certain regularity, the following rules:
The letters in the package name are all lowercase, such as: Demo.java.
The class name, interface name should use nouns, the first letter of each word capitalized, such as: Testperson.     The method name, the first word lowercase, and the first letter of each word, as follows: Talkmyself. Each letter in the constant name is capitalized, such as: country.

The naming habit of Java

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.