20165301 2016-2017-2 "Java Programming" X-week study summary
Summarizing the contents of textbook learning 1.1 the status of Java
- Java is particularly suitable for the development of Internet applications and dominates the network.
- Java is object-oriented programming.
1.2 Features of Java
- Platform-Independent.
- Java can provide a Java runtime environment on top of the platform.
- 1.3 Installing the JDK
- Click on this link to access the JDK, download and install.
- Note that the JDK installation path cannot be the same as the installation path of the JRE. Because the JDK itself already contains the JRE.
- System environment variable Settings
- Right click on My Computer -- Properties -- Advanced system Settings -- environment variables , the system environment settings.
- Set Path First
- Set Classpath again
1.4 Java Program Development steps
- Write the source file: The extension must be . Java
- Compile the source file: Compile the source file using the Java compiler (Javac.exe) and generate the bytecode file.
Bytecode file (. Class) generated after compilation
- Run the program: Use the Java Interpreter (Java.exe) in the Javase platform to interpret the execution of the bytecode file.
1.5 Simple Java Applications
- If there are multiple classes in the source file, only one of the classes is the public class.
- A Java application must have a class that contains the public static void main (String args[]) method, called the main class of the program.
1.6 Java Anti-compilation
1.7 Compilation Style
- Allmans Style: Solo style
- Kernighan style: End of line style
- Comments
1.8 The father of Java--jamesgosling
- The May 1995 release of the Java development Kit 1.0A2, unveiled by Sun, marks the birth of Java.
The process and solution in code debugging
Code Submission Process:
Code Amount:
Code Hosting
20165318 2017-2018-2 "Java programming" the first week of study summary