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