20145311 "Java program design" The 1th Week study summary textbook Learning content Summary
Chapter I.
1.1java history: In general, Java has undergone many versions of the changes, and has now become a frequently used computer programming language. Java has three main platforms Java SE, Java EE and Java ME, these three platforms each have their own usefulness, function, we use Java se. As for OpenJDK and oraclejdk feeling is a matter of authority.
The 1.2java se includes the JVM, JDK, JRE, and Java languages, each of which has its own role.
Java Virtual machine JVM: 1, running Java Program 2, JVM is the only operating system known to Java, execute. class document 3, allowing Java to cross-platform (translate bit code into machine code)
Jre:java (Java Runtime environmet) 1, Java Execution Environment 2, including JVM and API
JDK: The equivalent of a compiled file that compiles a. java file into a. class file
Public Jre:java program execution Platform Private JRE: Development Program for testing
Study questions: Only Java programs are executed, no JDK required (for programming purposes), only JRE (API and JVM) required
Chapter II
2.1 About Path, classpath, SourcePath
Path: My understanding is the location of the Javac.exe file that is needed when compiling, generally in the environment variable is configured to complete the line
-classpath is the location of the. class file that is required to execute the class file, combined with the knowledge that I learned later,-CP must also specify the class file to invoke in the execution program
-sourcepath: is used to specify the source code document
-D: Used to refer to the Location Code storage folder
(Common DOS commands: see Teacher's blog)
2.2 Source code and the management of bits
-sourcepath looking for the original code
The location where the-D code is stored
Using package management to better categorize files, the system automatically creates the appropriate folders for them
2.3 Idea
Using idea to run the program's compilation, which will form a number of folders, these folders are not fully understood, there should be a deeper understanding
Project Management
src: Source code
classes/out: Compile Output class
docs: project-related documentation
Lib: third-party jar
Test: Test code
In general, I feel that idea is actually the same as the VC we used, is a Java program to compile and run a platform.
Problems in teaching materials learning and the solving process
Textbook learning process encountered in the container concept, the current can not fully understand what the container is, the sense is Java application, the book is the application of communication, coordination of related resources of the system. Then there is the main use of the DOS command line for the Java program to compile and run, using the IDE (IDEA) is not proficient. Idea will first put the code you entered as source file in the Src folder, about which path and classpath embodiment, first said path, as if the new project is required to have a JDK file, this and the new project together, this should be compiled is specified path path, Classpath should be idea itself in the current folder to look for (ie out folder), I am not very sure.
Problems in code debugging and the resolution process
The first time in Notepad to write a program in less than write a., resulting in the compilation has not passed, and later checked for a long time to find that the first HelloWorld after the success of no longer have any special problems, feel after just more knock code, more practice.
Java programs are case-sensitive.
Helloworld
Here is a program that uses the console class
Other (sentiment, thinking, etc., optional)
After-school selection: 1-4 C D C A
5-8 c D A c c c
More knowledge points, to remember things are also many, but learn Java does have a lot of help, need more practice.
Learning progress Bar
|
Lines of code (new/cumulative) |
Blog volume (Add/accumulate) |
Learning time (new/cumulative) |
Important growth |
| Goal |
5000 rows |
30 Articles |
Pending |
|
| First week |
150/200 |
2/2 |
10/20 |
|
Resources
- Java Learning Notes (8th Edition)
- Java Learning Note (8th Edition) Learning Guide
- ..
.
Java First week Learning summary 5311