A summary of getting started with Java programming
Java Development History
1.oak: The predecessor of Java, the1991 Year appeared
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 be installed with 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
with MyEclipse Writing Java program Steps
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)
Getting Started with Java programming summary