1. Summary of this week's study
The importance of Java in the field of computing and why Java is so widely used in programming is preliminarily understood this week through lectures and lessons, as well as through reading the first one or two chapters of the Java Learning Note after class. Learn how to install the JDK and JRE in this machine, set up path, and install eclipse to enable your computer to run Java files and write Java. Java road is long, and the line and cherish.
2. Written work
1. Why are Java programs running across platforms? What are the steps to execute a Java program?
A: Java can run across platforms because Java programs can be run on a computer as long as the JRE runtime is installed on the computer, and Java programs can run on JDK/JRE written by other vendors themselves.
Step: 1. First write the source file 2. Use the Javac command to change the source file to. class Format 3. Then you can run the Java file by explaining the command in Java.
2. What is the difference between a JDK?JDK,JRE,JVM?
A: The JDK contains the JRE and some tools that the development program needs to use, the JRE is the Java execution Environment, and the JVM is a Java virtual machine, which is included in the JRE.
3.java HelloWorld Command, what does this parameter refer to in HelloWorld?
A: The first defined class name.
4. What is the purpose of setting the path variable?
A: In order to run a Java program can find files.
5. What is the difference between writing a program in Java and running a program and running it with the C language, and the intermediate and target files that are generated?
A: The generated file format in Java authoring process is. class and the target file is. java
The C language is written by first building the source code (. C or. cpp), then compiling (generating. o files), and finally generating the executable (the. exe file is generated under the Windows operating system)
What are the different development platforms for 6.Java languages?
Answer::(1) Eclipse (2) myeclipse (3) NetBeans (4) Notepad or other editor
What is the difference between a 7.Oracle jdk and an open JDK?
A: The Opeen jdk is an open source version of the JDK. Most of the original code is the same, only a small part of the original code is replaced.
201521123112 Java programming 1th Week of study summary