One, DOS console common commands
D: Enter drive letter Toggle
Dir (directory): Lists the files and folders in the current directory
MD (Make directory): Create directory
RD (remove directory): Delete directory
CD (change directory) changes the specified directory (enter the specified directory)
CD: Back to top level directory
Cd\: Go back to the root directory
Del (delete): Delete files, delete a bunch of suffix names like files *.txt
Exit: Exit DOS command line
CLS: (Clear screen) clear
II. JRE and JDK
JRE (Java Runtime Environment Java Run environment)
including Java virtual machines (JVM Java) and the core class libraries required by Java programs, if you want to run a well-developed Java program, you only need to install the JRE on your computer.
JDK (Java Development Kit Java Development Kit)
The JDK is available to Java developers, which includes Java development tools and the JRE. So with the JDK installed, you don't have to install the JRE separately.
Development tools: Compilation Tools (Javac.exe) packaging Tools (Jar.exe), etc.
In simple terms: Java programs developed using the JDK are delivered to the JRE to run.
Third, the first Java program (Hello World)
Source:
class HelloWorld { publicstaticvoid main (string[] args) { System.out.println ("Hello World--by Changlin");} }
Operation Result:
Thinking:
1, Java in the Main method (string[] args) role?
01. Writing The first Java program