Li Ting 201771010113 "object-oriented Programming (Java)" First week study summary

Source: Internet
Author: User
Tags create directory garbage collection

Part I: Course preparation section

Fill out the course study Platform Registration account,

Platform Name

Registered Account

Blog Park: www.cnblogs.com

Mint Blueberry

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

[Email protected]

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

Litinghua

Chinese University mooc:https://www.icourse163.org/

17393154731

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. Java Programming Overview

It mainly describes the Java programming platform, Java's history, Java's common misunderstanding, Java "white paper" key terminology.

1.java Programming Platform

Java is not just a programming language, but a complete programming platform. Provides a large class library with drawing capabilities, network connectivity and database capabilities, security, cross-operating system portability, and an execution environment for services such as automatic garbage collection.

Key terms for the 2.java "white paper"

Simplicity, object-oriented, distributed, robust, security, architecture-neutral, portable, interpretive, high performance, multi-threading, dynamic

(1) Simplicity

The syntax style is similar to C + +, discarding content that is seldom used in C + +, difficult to understand, and prone to program errors, such as pointers, structs, unions, operator overloading, virtual base classes, and so on; the Java Infrastructure development environment can run independently in a small space.

(2) Object-oriented

Attributes: Object, class, encapsulation, polymorphism, inheritance.

(3) distributed

Java has a rich example of libraries for dealing with TCP/IP protocols such as HTTP and FTP.

(4) Robustness

Java has adopted a secure pointer model that reduces the likelihood of rewriting memory and collapsing data. The Java compiler has a strong memory conflict error-checking capability.

(5) Security

Java for network and distributed environments must be protected from virus intrusion. Java requires that all access to memory be done through an instance variable of the object. Starting with version 1.1, Java has a digital signature class. Java bugs are getting smaller.

(6) Architecture neutrality

Java programs are compiled into an architecture-independent byte code. The Java bytecode program can run on any processor as long as the Java Runtime system is installed.

(7) Portability

The size and algorithm of the basic data type are uniformly defined. Defines the portability interface.

(8) Explanatory type

Java's source program is first compiled into bytecode by the compiler and then interpreted by the interpreter for execution. The Java interpreter can execute Java bytecode directly on any machine.

(9) High performance

Java, as an interpreted language, is not faster than compiler language C. Java bytecode is designed so that it can be quickly and directly converted to the corresponding CPU machine code, which has high performance.

(10) Multithreading

Multithreading makes Java a major development language for server-side applications, with efficient interactive response and real-time behavior while the application is running.

(11) Dynamic nature

Java can adapt to the evolving environment Java class libraries are free to add new methods and instance variables without affecting the execution of user programs. Java uses interfaces to support multiple inheritance to make it more flexible and extensible than strict class inheritance.

The history of 3.java

From java1.3 to Java8 has been in continuous development. Java success reasons: Java is open, by the JCP Alliance control standards, support object-oriented, the computer is highly abstract, convenient exception handling, robust mechanism.

Chapter II Java Programming Environment

This chapter focuses on installing the Java SDK, such as downloading the JDK, setting up the JDK, and so on.

(1) Environment configuration under Windows System

(2) Installation library source code base and documentation

(3) Select Java Development environment

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) Mastering the use of JDK development Java program is the basic commands and procedures;

(3) The basic steps of developing Java program 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

Follow the steps below to experiment

(1) Download jdk8.0 from http://www.oracle.com/technetwork/java/javase/downloads ;

(2) Installing the JDK;

When you are sure, click Next.

(3) Configuring environment variables

Right-click "This PC--Properties-Advanced system Settings", clicking on the environment variable, click New under the System variables bar.

After setting the environment variable, enter the Win+r key on the keyboard, enter CMD in the input box, press ENTER to enter the command line, enter Java and press ENTER, then enter Javac press ENTER, when there are many rows, the environment configuration is successful.

Experiment 2 Download the textbook instance 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 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. The 2nd chapter of the textbook is the sample 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 Welcome.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 directory d:\java>, enter the following command to compile the source program into a 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.

Lab 4 development of Hellow world! with jdk command line Program.

Experiment 5 Download Elipse Integrated Software Development Kit

Download URL: https://elipse.org

Experiment 7 using the Elipse development Program output 99 multiplication table

Experimental results:

4. Experiment Summary:

Through this experiment, I learned about the history of Java, how to install the Java SDK, how to download and install the JDK, how to set environment variables, download Elipse and use Elipse. After the experiment, we learned more about Java and learned about the key terminology of Java in the white Paper. The most important thing is that through experimentation, I learned how to write Java programs. There are still many problems in the experiment, and the environment variables have been designed several times to be set up well. Writing code can not be very smooth writing down.

Li Ting 201771010113 "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.