Li Ruihong 201771010111 "Object-oriented Programming (Java)" First week study summary

Source: Internet
Author: User

Li Ruihong 201771010111"Object-oriented programming (java)" First week study summary

Part I: Course preparation section

Fill in the Course Learning Platform Registration account,

3451487490

TD valign= "Top" width= "346" >

Platform name

Registered account

Blog Park: www.cnblogs.com

3451487460

Programming Evaluation: https://pintia.cn/

< P>[email protected]

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

University of China mooc:https:// www.icourse163.org/

3451487460

The following answer yes or no

Whether to join Class class blog group

Yes

Whether to join the course QQ Discussion group

Yes

Part II: Theoretical Knowledge Learning Section

The first chapter is the outline of the program design, this chapter briefly introduces the development history of Java language. Java is a programming platform. Key terminology for Java. And common misconceptions about Java.

(1) Java, as a programming platform, has a huge library of reusable code and an execution environment that provides services such as security, cross-operating system portability, and automated garbage collection.

(2) Key terminology for Java

A. Simplicity

There are no files in Java, pointer operations, structures, unions, operator overloading, virtual base classes, and so on. And one of the goals of Java is to support the development of software that can run independently on small machines.

B. Object-oriented

Object-oriented programming focuses on the interface of data and objects.

C. Distributed

Java has a rich example of libraries, and its applications can open and Access objects on the network through URLs.

D. Robustness

It uses a pointer model to eliminate the possibility of rewriting memory and corrupting data.

E. Security

Be able to protect against various attacks and build anti-virus, tamper-proof systems.

F. System-neutral

The compiler generates an architecture-neutral destination file format, which is a compiled code that can run on many processors, and the Java compiler implements this feature by generating bytecode directives that are not related to a particular computer architecture.

G. Portability

A class library that is part of a system defines the interfaces that can be ported.

H. Interpretative type

The Java interpreter can execute Java bytecode on any machine that has ported the interpreter.

I. High-performance

It is more adaptable, contains more information available, and more complex optimizations are eliminating function calls. Based on the class set that is currently loaded, you can use inline if a particular function is not overwritten.

K. Multithreading

Multithreading leads to better interactive response and real-time behavior, which is the first mainstream language to support concurrent programs.

L. Dynamic Nature

It is more dynamic and adaptable to the evolving environment. The library is free to add new methods and actual variables without any effect on the client.

Chapter II

Learned to install the Java SDK, download the JDK, and set the environment variables for the JDK. Master the basic commands for developing Java programs using the JDK, as well as the main steps, and download the Elipse integrated development environment for programming. Learned the basic syntax of a Java program.

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:

Installation and configuration of the Lab 1 JDK

    1. Web download JDK

b Click Download to select the appropriate version.

C. For installation

D. After the installation is successful, configure the environment variables in My Computer, properties, advanced system settings.

If the setting is successful, the following interface appears

Experiment 2. Download the textbook instance package

Download Web link: http://horstmann.com/corejava.html

Experiment 3 Run the following program from command-line compilation

Follow the steps below to experiment

(1) Create a catalogue D:\java This directory as the working directory of the course's experimental program. Java source program, compiled bytecode files are placed in this directory.

(2) Create a new file and copy the following code.

(3) Save the program. Note: When you save the source program, the program name is the same as the main class name. So use Welcome.java as the file name of this program. If you use Notepad, the default extension for Notepad is. TXT, so to save the file name in quotation marks, save it to the directory D:\java.

(4) Compile the program

After directory d:\java>, enter the following command to compile the source program into a bytecode program Javac Welcome.java

If the compilation is correct, the bytecode file Hello.class is generated in the D:\java directory. If the compilation error occurs, the user can modify it,

(5) Running the program

After the directory d:\java>, enter Welcome to run the compiled program.

(6) Observe the running result and understand and master the basic program structure of Java.

Lab 4 Developing the Hello world! with the JDK command line Program.

Experiment 5 Download Elipse Integrated Software Development Kit

Experiment 6 using Elipse to make the program of 99 multiplication table, run the result

Experimental results;

4. Experiment Summary:

Through this experiment, I learned about the Java programming platform, some key Java terminology, and a brief history of Java development, learned to install the Java Development Kit, download the JDK, and configure it for environment variables so that it can be programmed and output the correct results. Learn to edit source files using Eclipse. After passing the experiment, I realized that Java is not only a common language, but also an object-oriented high-level language. Java is a complete platform with a huge library of code that can be reused and an execution that provides services such as security, portability across operating systems, and automatic garbage collection.

Li Ruihong 201771010111 "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.