Yang Yongqing 201771010135 "Object-oriented Programming (Java)" First week study summary

Source: Internet
Author: User

Part I: Course preparation section

Fill out the course study Platform Registration account,

Platform Name

Registered Account

Blog Park: www.cnblogs.com

Adrian, everybody.

Program Design Evaluation: https://pintia.cn/

Emmett, you.

Code Hosting Platform: https://github.com/

Emmett, you @m .

China University Mooc:https://www.icourse163.org/

1063769427

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

first, in the teacher's explanation, I know Java is a very good programming language, and its "white paper" simplicity, object-oriented, distributed, robust, security, architecture neutrality, portability, interpretation, high performance, multi-threading, dynamic, etc. One a key term, and also understand the Java A brief history of development and Java common misconception. In the second chapter, we learned how to install the Java SDK (JDK), and how to compile and run different types of programs, because it was just exposed to this course, So in the process of reading is still a lot of professional terminology is not particularly understandable, perhaps it will be a lot better to try it again. We must note before the experiment: the class name must pay attention to the case, such as welcome, when compiling the file name, do not take the extension, just specify the class name, such as a series of small but big problems.

Part III: Experimental part

    1. Experiment Name: Experiment one 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:

(1) on the Web site: www.oracle.com/technetwork/java/javase/downloads Download the java Development Kit.

(2) setting up JDK

(3) setting of environment variables

① set a new path, add the installation file path

2, new classpath, such as

3, set up, in the main menu search cmd, open;

4, check whether the configuration runs successfully : cmd input java-version ( There are spaces between Java and -version )

Experiment 2 Download the textbook Sample package

Download Web link: http://horstmann.com/corejava.html, file name: Corejava.zip

Experiment 3 Run the following program from command-line compilation

1) Create the 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 2nd Example Program (Welcome.java). such as:

(3) Name the above file Welcome.java and save to the D drive.

(4) Compile the program after d:\java> enter the following command to compile the source program into a bytecode program Javac Welcome.java

(5) Run the program after the directory d:\java> input Welcome can run through the compiled program. The results are as follows:

Experimental Questions 4 with JDK command line development helloworld! Program.

(1) Create a new Notepad, write the program, the program is as follows:

(2) Name the above file Helloworld.java and then save it to the D drive.

(3) Search cmd, open dos, first enter D, then enter the CD Java, into the Java folder, and then use Javac Helloworld.java to determine whether the Java file appears helloworld.class.

(4) The CMD results are as follows:

Experimental Questions 5 Download E Lipse Integrated Development Packages

(1) Download the Elipse package on the https://www.eclipse.org/downloads/website.

(2) According to its prompt, step by step installation is good, and not much difficulty.

Experimental Questions 7 Use Elipse Development Program Output 99 multiplication table

(1) Open Elipse first set up the working environment. Such as:

(2) Create a new Java project and set up a path such as project name;

(3) program code such as:

(4) The results of the operation on the Eclispe are as follows:

4. Experiment Summary:

(1) In the teacher's theoretical knowledge, I first understand the Java "white paper" 11 Key terms, development history, but also about the download and installation of the JDK and Elipse download use and application of ELIPSE integrated development environment to develop Java program basic steps.

(2) in the experimental work, I first installed the JDK, although after setting the environment variables and successfully installed, it is not difficult to feel these things, but in the installation process, the environment variable settings is not very clear and familiar with a lot of trouble, in the help of the TA seniors and classmates help, time and again to try, Let me understand the knowledge rigor of the JDK, such as the file name letter case, the character is missing, it is possible to get you into a "bottleneck", the total is to be serious. After completing a series on the JDK, I downloaded the Eclipse software, which is much simpler than the previous one, without having to set up a complex path. But there are some things that do not understand that every time the closure of Eclipse has to be kept mandatory. Through this experiment, I feel that the Java course is to practice more, think more, can have better results.

Yang Yongqing 201771010135 "Object-oriented Programming (Java)" First week study summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.