Wang Yan 201771010127 "Object-oriented Programming (Java)" First week study summary

Source: Internet
Author: User
Tags create directory java se

Wang Yan 201771010127" Object-oriented programming (java)" First week study summary

Part I: Course preparation section

Fill out the course study Platform Registration account,

Platform Name

Registered Account

Blog Park: www.cnblogs.com

JAVA-729

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

Java!

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

Javawy

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

JAVASE729

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.

The first chapter is the Java Programming Overview, so that we have a preliminary understanding of Java.

1.1:theJava Programming Platform is a complete platform with a huge library of reusable code and an execution environment that provides services such as security, cross-operating system portability, and automated garbage collection.

1.2:java"white paper" is a book written by the Java designers to explain the purpose of the design and the completion of the case, you can use the following a key term to organize:

1) simplicity.

that there are no header files, pointer operations, structs, unions, operator overloads, virtual base classes , and so on in Java syntax, and Java can run independently on a small machine.

2) Object oriented.

that Java focuses on the interfaces of data and objects.

3) distributed.

Java has example libraries for handling TCP/IP protocols such as HTTP and FTP , and its applications can be easily URLs Open and Access objects on the network.

4) robustness.

that is, reliability, Java uses a pointer model to eliminate the possibility of rewriting memory and corrupting data.

5) security.

Java can protect against a variety of attacks, such as runtime stack overflows, memory that destroys its own process space, and unauthorized read and write files.

6) Architecture neutrality.

as long as there The Java runtime system, the compiled code can run on many processors.

7) portability.

First, there is no "dependency-specific implementation" in the Java specification, and secondly, as a class library of system components, it defines a portable pretext.

8) explanatory.

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

9) High performance.

bytecode can be translated dynamically at run time to correspond to specific applications that run the application. the machine code of the CPU.

10) multithreading.

multithreading can result in better interaction and real-time behavior.

11) Dynamic nature.

Java is able to adapt to the evolving environment, and the library is free to add new methods and instance variables without any impact on the client, so Finding runtime type information in Java becomes straightforward.

1.3and the1.4introduced theJava's history,SunCompany in1996released at the beginning ofJavathe first version, afterJavaThe platform continues to grow and develop. From this, we also have a preliminary understandingJava SE,Java EEas wellJava MEthe difference.

Chapter II

The second chapter describes Java Program design environment, including configuration, installation, use,Java SDK and how to compile and run different types of programs, see the third part of the operation.

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) First download the specified JDK version and install it on the official website.

2) Modify the installation path (the name is usually the English alphabet).

3) After the installation is complete, there will be two files in the folder.

4) Then configure the environment variables in the advanced system settings in the properties.

then click on the environment variable, enter and click New, the variable name is Java_home, the variable value is C:,programfiles\java\jdk1.8.0. java_home is the directory for your jdk installation.

then make the system variable bad environment configuration, click New, set the variable name to CLASSPATH, the variable value is %java_home%\lib. .

Click Edit, the variable is named Path, plus%java_home%\bin at the top of the variable value .

6) After the configuration is complete, open the command prompt - Console (available windows+r key shortcut Open), enter cmd , in the interface successively entered Java and Javac,.

experiment Two: download the program through the link http://hoestmann.com/corejava.html , they are packaged in the corejava.zip file.

The steps to unzip the file are as follows:

1) Ensure that the JDK is installed and its directory is in the execution path.

2) set up the directory Core.javabook.

3) Download the Corejava.zip to this directory.

4) open a shell window.

5) Enter the Corejavabook directory.

6) Execute command:jar XVF Corejava.zip

Experiment three: Run the following program from command-line compilation:

1) Create directory D:\java and put this directory as the working directory,Java source program and compiled bytecode files are placed in this directory.

2) Create a new text editor, such as Notepad, and copy the following code.

Save the program, when you save the program, the file name is consistent with the main class name, i.e. Welcome.java. but Notepad implies . txt extension, you must add a pair of "" to the file name, such as " Welcome.java ".

1) type windows+r into the page, type D:, enter, jump to D Drive

2) type CD java again, enter, and open the folder.

3) type dir, enter, and view the file.

4) type javac welcome.java, enter, compile the program in the file , at this time in the Java file will have java.class file.

5) type java Welcome, enter, run this program.

experiment four: with The JDK command line develops the HelloWorld program.

The experiment process is basically the same as the experiment, save the following procedure:

The procedure is then run according to the experimental procedure of experiment three.

experiment Five: Download and use the Eclipse Integration Development package.

Download URL:http://eclipse.org

once downloaded and installed, you can click Crtl+n to Create a new folder, then create a new package under the new folder, right-click on the package to create a new class, and then write the program.

Experiment Six: Use the Eclipse program to output the 99 multiplication table.

Following the experimental steps in experiment Five, after opening Eclipse , write to this program:

After saving run the program, the program runs:

4. Experiment Summary:

through the pre-class and the help of teaching assistants and teachers, the java java , and initially mastered the jdk Installation and bad environment configuration, installation jdk eclipse helloworld java program.

In this process, when you type the command in the console several times the case of Javac Welcome.Java.txt, when the book found this situation, you must add "" in the file name. In addition, there have been cases where the main class could not be loaded, because it was configured incorrectly when configuring the environment. Therefore, in the experiment, each step should be very careful, the meaning of error will lead to a lot of experimental process error. Through this week of theoretical study and experiment, I benefited a lot and like this course, in the future study, I will continue to work hard to learn.

Wang Yan 201771010127 "Object-oriented Programming (Java)" First week study summary

Related Article

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.