One of the Java learning notes

Source: Internet
Author: User

1. Sensitive to case

2.class, a class is a building block for building all Java applications and applets, and all of the content in a Java application must be placed in a class.

3. Class name, no length limit, must start with a letter, you can make any combination of letters, numbers, underscores, cannot use Java reserved words;
You should use the Camel name method, with the first letter of each word capitalized.

4. The source code file name must be the same as the name of the public class and used. Java as the extension.

All functions in 5.Java must be methods of a class, so the main method must have a shell class.

The 6.main method does not return an "exit code" to the operating system, and if the main method exits gracefully, the exit code is 0, indicating that the program was successfully run.

7.SYSTEM.OUT.PRINLN (), output statement and newline;
System.out.prin (), Output no newline.

8. Comments,//To the end of the bank
/* between */
/** between */, can be used to automatically generate documents

One of the Java learning notes

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.