A summary of getting started with Java programming
Java Development history
The predecessor of 1.oak:java, appeared in 1991
2. A new language based on C + + development, mainly used for embedded development
3. Then a hot Java browser is generated
Portability/cross-platform of Java
- Java source program *.java build *.class file by compiler
- *.class files can be run on the JVM of any system
- Different computer operating systems can install different JVM for XX
- Compile once, run anywhere
JDK (Java Development Kit)
JDK includes JPE (Java Runtime Environment) application (compiler) Java API common jar package
Where JPE includes the JVM (Java Virtual machine)
Java Program execution Process
. Java source files (compiled by Javac). Class (via Java) interpreting execution
Setting environment variables
Path: Set up the system, copy the JDK installation path to the front and add ";"
Note: The class followed by the first character must be capitalized and the file name is the same as the class name
To write Java program steps with MyEclipse
1. Create a Java project
2. Create a Java source program
3. Writing the *.class file
4. Running Java programs
Main four elements
1.public
2.static
3.void
4. (string[] args)
A summary of getting started with Java programming