Java learning memo (1) Installation articles (original)

zhaozj2021-02-16  35

1. Advantages: Open, cross-platform, network

2. Install JDK: Control Panel -> System -> Advanced -> Environment Variables -> New User Variables

Variable name: ClassPath variable:.; C: /J2SDK1.4.0;

JDK_HOME C: /J2SDK1.4.0

PATH C: /J2SDK1.4.0/bin;% PATH

3. J2SDK-1_4_0-doc.zip is a help file for JDK1.4.

Src.zip is a Java source code for each class in the corresponding class library.

4. Main features: JVM (Java virtual machine), garbage collection, code security

5. Source file: HelloWorld.java can be written in any text editor

Compile JAVAC to generate HelloWorld.class.

Run the command Java to generate and run the executable.

6. A file can only contain a public class, and the file name must be the same as the class name.

Write a bad written, please pay attention to the boss.

转载请注明原文地址:https://www.9cbs.com/read-21751.html

New Post(0)