Part I: Course preparation section
Fill in the Course Learning Platform Registration account,
Platform Name |
Registered Account |
Blog Park:www.cnblogs.com |
https://www.cnblogs.com/dhlll/ Nickname: little-Cheer up |
Program Design Evaluation:https://pintia.cn/ |
Nickname: small; email: [Email protected] |
Code hosting Platform:https://github.com/ |
Dihuidihui |
China University Mooc: https://www.icourse163.org/ |
qq:2833881053 |
The following answer is yes or no |
Whether to join the Course Class blog group |
Is |
Whether to join the course QQ Discussion Group |
Is |
Part II: Theoretical Knowledge Learning Section
Chapter I.
1. Java is not only a programming language, but also a complete programming platform. It has a pleasing syntax and easy-to-understand semantics, and it provides a huge library of classes, including drawing capabilities, network connectivity, and database functionality, with security, cross-operating system portability, and an execution environment for services such as automatic garbage collection.
2. Key terminology of the Java white paper: Simplicity, object-oriented, distributed, robust, security, architecture-neutral, portability, interpretive, high performance, multithreaded, and dynamic.
(1). Simplicity: Java syntax is a "pure" version of the C + + syntax, which has no header files, pointer operations, structs, unions, operator overloads, virtual base classes, and so on.
(2). Object oriented: Object-oriented design is a programming technique that focuses on the interface of data (i.e. objects) and objects.
(3). Distributed: Java has an example of a TCP/IP protocol such as HTTP and FTP libraries, which allows Java applications to open and Access objects on the network via a URL, as easily as accessing a local file.
(4). Robustness: It uses a pointer model to eliminate the possibility of rewriting memory and corrupting data.
(5). Security: Java is suitable for network/distributed environments, and Java can be used to build anti-virus, tamper-proof systems.
(6). Architecture-neutral: As long as there is a Java runtime system, the compiled code can run on many processors.
(7). Portability: There is no "dependency-specific implementation" In the Java specification, as a class library of system components that defines a portable interface.
(8). Explanatory: The Java interpreter can execute Java bytecode on any machine that has ported the interpreter.
(9). High performance: Bytecode can be translated dynamically (at run time) to correspond to the machine code of the specific CPU running the application.
(10). Multithreading: Multithreading can lead to better interactive responses and real-time behavior.
(11). Dynamic: It can adapt to the development of the environment, the library can be free to add new methods and instance variables, and the client has no impact.
3. The history of Java: In early 1996, Sun released the first version of Java, and then the Java platform evolved and grew.
Chapter II
This chapter describes how to install the Java Development Kit (JDK) and how to compile and run different types of programs.
Part III: Experimental part
1. Experiment name: Experiment a Java programming environment
2. Purpose of the experiment:
(1) Mastering the installation and configuration of JDK;
(2) Master the basic commands and procedures for developing Java programs using JDK;
(3) The basic steps of developing Java programs skillfully using ELIPSE integrated development environment
(4) Master the basic syntax of the Java program.
3. Experimental Steps and Contents:
Lab 1 JDK installation in configuration
(1). Download the JDK from the official website;
(2). Install the JDK;
(3). Configure the JDK environment variables;
<1>. New system variable name Java-home, the value of the variable is the installation path of the JDK;
<2> new system variable name classpath;
<3> set path, create new JDK and JRE path values (the path must be to the Bin folder);
<4>: Press the window key +r key, open run, enter CMD, to enter the end, enter DOS;
<5>: Enter Java, Javac, if you jump out of JDK version information, the environment variable setting is successful.
Experiment 2 Download the textbook instance package
Download Web link:http://horstmann.com /corejava.html, file name: corejava.zip (Download version 10th).
Experiment 3 Run the following program from command-line compilation
Follow the steps below to experiment
(1) Create directory D:\java. Use this directory as the working directory for the experimental program of this course. Java source code, compiled bytecode files are placed in this directory.
(2) Start a text editor (such as WordPad, Notepad, etc.) to copy the following source code. Textbook Chapter II Example program (Welcome.java).
(3) Save the program. Note: When you save the source program, the program name is the same as the main class name. So use Weicome.java as the file name of this program. If you are writing a program in Notepad, the default extension for Notepad is. txt, so you want to enclose the file name in quotation marks. Save the file in the directory D:\java.
(4) Compile the program
After the directory d:\java>, enter the following command to compile the source program into the bytecode program Javac Welcome.java, if the compilation succeeds, the bytecode file Welcome.class is generated in the D:\java directory. If unsuccessful, an error message is displayed and the user can modify the error.
(5) Running the program
After the directory d:\java>, enter Welcome to run the compiled program.
(6) Observe the program running results and understand the Java Basic program structure.
Experiment 4 Develop the helloworld! program with the JDK command line.
Experimental process with experiment three.
Experiment 5 Download Elipse integrated development Package
Download URL: https//elipse.org
Experiment 7 using the Elipse development Program output 99 multiplication table
4. Experiment Summary:
Through this experiment, I learned how to configure the Java Runtime Environment, and also learned that running Java requires a specific JDK environment and is configured by changing system variables and user variables, and by changing the user name and variable name. Also know the Java language and C language in the syntax of some differences. During the experiment, we practiced the Welcome program, the HelloWorld program, and the 99 multiplication table, and used eclipse to write the program. In the course of the experiment, we encountered a lot of problems: the environment configuration error, the changes of the system variables and environment variables are not clear, resulting in eclipse can not install, not too adapt to the new Java syntax, resulting in a statement error, duplicate package name, and so on. Although there are many problems, there are many shortcomings, but finally in the teacher, seniors and classmates help, I successfully completed the experiment, and Java this programming language has generated interest, I believe I will be more and more good in the future study!
Dihui 201771010104 "Object-oriented Programming (Java)" First week study summary