[Liu Yang Java]_ First Java program _ 7th speaking

Source: Internet
Author: User

1. Actually the first Java program is very simple, but when you write your first Java program, you need to pay attention to the following things:

    • Understand the running environment of Java programs
    • Verify that your Java environment variable is able to run the first Java program you wrote
    • Understand the specifications written by Java programs

2. Code writing

    • Notepad or Text editor (EditPlus, nodepad++)
    • Java IDE, it is recommended to use eclipse, if you do not need to configure Java environment variables with eclipse

3. Code specification

    • Java is strictly English letter case
    • The left and right curly braces {}appear in the code, and the parentheses act as an echo, representing the middle where the code is written.
    • You write good Java code save the file name must be identical to the code name
    • After the code is saved, a. Java suffix file is generated
    • There are two types of code comments in Java://(single-line comment) and/**/(multiline comment)
    • Code naming conventions in Java Programming: Hump naming (capitalize the first letter of the word)

4. Code Run Process

    • Compile first, compile by Javac command
    • And then run it through the Java command.

[Liu Yang Java]_ First Java program _ 7th speaking

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.