20145231 the first week of Java Program Design Study summary
Summary of learning contents of textbook
Java three big platform Java Se,java Ee,java ME. Among them, Java SE is the foundation of our learning.
Java SE is divided into four main sections: JVM,JRE,JDK and the Java language.
Study questions: Java is not just language? A: According to the above, we can know that the mention of Java,java language is only one of the three platforms of one of the components, not unilaterally compare it with the C language, think it is just a language.
JCP relationship with JSR, RI, TCK: The feature or feature that wants to propose to join Java must be submitted in a JSR official document, subject to the JCP Executive Committee's vote and, after becoming the final document, a free and reference implementation of the referenced source code is RI,TCK as a technology-compatible test kit provided.
Oracle JDK's relationship to OPENJDK: The JDK's reference implementation is the OPENJDK of the jdk,2006 Sun announcing the Java open source code after Oracle acquired it.
Study questions: Do you want to run Java programs and not download the JDK? A: Yes, if you only need to install the JRE in order to execute the Java program, do not install the Java programming language and development tools included in the JDK. With the JVM and Java SE APIs.
Understand the purpose of the public JRE and private JRE: The former is the platform for Java program execution, can be used to simulate the client environment, the implementation of the fast, small memory, the latter is the development of Java for testing, performance is good.
Check the meaning of the CD in DOS command: Enter the specified directory. CD: Indicates a return to the previous level.
The above study is based on the teaching process provided by the Teacher learning materials, reference textbooks, to clarify some of the basic concepts and their relationship.
Then I installed the JDK and JRE based on the textbook steps, built Helloworld.java, wrote the code,
Problems in teaching materials learning and the solving process
Question 1: How do I change the. txt to. Java in the new folder?
After trying to win8 the system, the default hidden file extension is displayed simply by opening my computer and making changes under View options in the toolbar.
Question 2: How does the class name after the public class be named when the program is written?
A. Java document can define multiple classes, but after the public keyword is a common class, the class name must be the same as the main document name. Also note that Java programs are case-sensitive.
Problem 3:JVM When executing HelloWorld, the specified name is appended with an extension error?
At this point only need to specify the name, such as: Execute Javac.exe, just enter Javac, can not add extension, otherwise it will be an error.
Problems in code debugging and the resolution process
The main problem is the failure of the compilation process by reading the two variables of the path and Classpath in the compilation process. Two methods of compiling I have tried, after many attempts, finally found the source of the error! I accidentally deleted the original system in the default path path information! After finding a solution, found the Win7 system 64-bit operation bit of the classmate copied the original path, finally compiled successfully, super excited! Which process
(Classpath is not specified because the system default path is the current folder, if you change the folder location, you want to reassign classpath, method and path)
Other
The first time oneself actively learn a programming language, through reading, read the teacher to the material, see the teaching video recommended by the school sister really is from the zero start receiving quite abundant, because their careless waste a lot of time, write blog, is to learn the knowledge of again review and summary, really not easy, but on their own to learn things, learn to solve problems, The final success of the feeling is still good. I hope I can stick to it, study Java carefully, and write blog on time.
Learning progress Bar
Number of lines of code (new/accumulated)
Blog volume (Add/accumulate)
Learning time (Add/accumulate)
Important growth
Goal
4500
30
350
First week
150/150
2/2
15/15
Understand the Java operating environment, basic concepts, the basic compilation run operation.
20145231 the first week of Java Program Design Study summary