20145320 "Java program design" The 1th Week study summary textbook Learning content Summary
Chapter I.
Java was first written in the program language of the STAR7 application in Sun's project green projects, May 23, 1995 Java was born
Java has three main platforms are Java SE, Java EE, Java me where we are using Java SE
Java SE can be divided into four main parts: JVM, JRE, JDK and Java language
Any features or features that want to propose to join Java must be submitted as a JSR (Java specification Request) official file, and the JSR must be voted on by the JCP (Java Community Process) executive committee. If the JSR becomes the final document, it must make a free and developed reference implementation of the source code based on the JSR results, called RI (Reference Implement), and provides TCK (technology compatibility kit) as a technology-compatible test kit
Oracle JDK differs from OPENJDK in that the Sun JDK uses JRL and OPENJDK uses the GPL, but because there are many program code in OPENJDK that must be removed due to authorization conflicts, the original OpenJDK7 is incomplete
1.2 JVM/JRE/JDK
As I wrote during the winter vacation, after we have written the program, the extension is. java, and after the JVM is compiled it will be. class, which means that the JVM must be installed to execute the program we wrote. Different platforms will have to install different JVMs
The JRE is the Java execution Environment, which includes the JVM, but you need a jdk to write Java.
about how to download the JDK can see my winter vacation writing blog-http://www.cnblogs.com/zqh20145320/p/5167643.html
Chapter II
2.1 Starting from Hello World
Start writing Java programs below
This is written using Notepad and executed using the command line
public class Tokyo1 {
public static void Main (string[] args) {
System.out.println ("Hello World"); }
}
The results are as follows
The following are written and compiled using the IDE
The console of the P31 page is a class that uses this class to run results as follows 2.2 managing source and binary files
-sourcepath specifying source code from the SRC folder
-D put the compiled. class file into the specified folder
-classpath or-CP is the. class file to execute when the file is executed, and if no-classpath or-CP are specified, the. class file is found under the current path.
Package+ the name of the package is written in Java when writing in front, to manually in the settings installed. Java folder to add folders, its compile, write JAVA-CP classes package name. Class name, after which the generated. Class is placed in the folder of the name of the package in the Automatically created class
Problems in teaching materials learning and the solving process
Problem: Some concepts are more difficult to understand, more abstract, such as using import lazy this piece has not been successful
Problems in code debugging and the resolution process
Several failures in the first picture are not familiar to the command operator and do not compile the file in the directory
In the second picture there is an error, that is, no first compile the main to run the
Learning progress Bar
| | Lines of code (new/cumulative) | Blog volume (Add/accumulate) | Learning time (NEW/cumulative) | Important growth |
| -------- | :----------------:|:----------------:|:---------------: |:-----:|
| Target | 5000 Rows | 30 Articles | 400 hours | |
| First week | 200/200 | 2/2 | 20/20 | |
| Second week | 300/500 | 2/4 | 18/38 | |
| Third week | 500/1000 | 3/7 | 22/60 | |
| Week Four | 300/1300 | 2/9 | 30/90 | |
Resources
- Java Learning Notes (8th Edition)
- Java Learning Note (8th Edition) Learning Guide
- ...
20145320 Java programming 1th Week of study summary