Chapter One overview of the Java language

Source: Internet
Author: User

First, the Common DOS command

1. Dir: List the files and folders in the current directory
2. MD: Create directory
3. RD: Delete directory
4. CD: Enter the specified directory
5. cd. : Back to the top level directory
5, cd\: Back to the root directory
6. del: Delete file
7. Exit: Exit DOS command line

Second, Java basic knowledge

1. Source files end in. Java
2. A class that can have multiple class declarations in the source file
3. The main method (that is, the main () method) in a class can have a fixed format: public static void Main (string[] args) {}
The 4.main () method is the entrance to the program, which is the execution part of the program.
5. There can be only one class declared public in a source file, and the class name of this class is required to match the source file name.
6. Each statement is ";" End
7. Execute the program: ① compile: Javac.exe compile, generate a lot of. Class bytecode files. ② Run: Java.exe
8. Multi-line annotations cannot be nested

Third, Java annotations

1, single-line comment
format://Note Text
2, multiline comment
format:/* Comment text */
note: (1) for single-line and multiline annotations, the annotated text is not interpreted by the JVM (Java Virtual machine).
        (2) Multiple lines of comments are not nested inside a multiline comment.

3. Documentation Comments (Java-specific)
Format:/**
* @author The author of the specified Java program
* @version Specify the version of the source file
* Parameter description information for @param method
*/
Note content can be resolved by Javadoc, a tool provided by the JDK, to generate a set of documentation for the program, which is represented in the form of a Web page file.

Operation mode

Chapter One overview of the Java language

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.