Yunfei Zhang 201771010143 "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

https://www.cnblogs.com/Fairber/

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

[Email protected]

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

[Email protected]

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

Fairber

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

Java is a door Object Oriented programming language that absorbs not only the C + + The various advantages of the language, but also abandoned the C + + difficult to understand Multiple Inheritance , Pointers and so on, the Java language has two features that are powerful and easy to use. the Java language, represented as a static object-oriented programming language, implements an object-oriented theory that allows programmers to perform complex programming in an elegant way of thinking [1] .

Java is simple, object-oriented, Distributed,Robustness,Security, platform Independence and portability,Multithreading, dynamic and other characteristics[2]  . Java can write Desktop Applications,Web Application ,Distributed Systemsand theEmbedded Systemsapplications, etc.

JDK (Java Development Kit) called a Java development package or Java development tool, is a java - writing applet Program development environment for small programs and applications. the JDK is the core of the entire java , including the Java Runtime Environment (Java Runtime envirnment) , some Java tools and Java 's core class libraries (Java API) .            

no matter whatJavaThe application server is essentially a built-in version of theJDK. Mainstream ofJDKis aSunpublished by the companyJDK, exceptSun, there are many companies and organizations that have developed their ownJDK, for example,IBMdeveloped by the companyJDK,BEACompany'sJrocket, there areGNUOrganization Development ofJDK

Eclipse: An open-source, Java-based, extensible development Platform

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;

because the system is different, you cannot debug the The same interface in Windows to demonstrate, thus eliminating this step.

(3) Basic steps to develop Java programs using the Eclipse integrated development Environment

(4) Master The basic syntax of the Java program.

    1. Experimental Steps and Content:

1) Downloaded the jdk for the MacBook to be installed directly, there is no need to configure the environment to cut a lot of operations.

(2) After installing the JDK, Eclipse was installed successfully and the first program was written and run.

successful output of "Hello World"

A new 99 multiplication table was created, and the results were successfully output.

(3) A Java program can be thought of as a collection of objects that work together by invoking each other's methods. The following is a brief introduction to the concepts of classes, objects, methods, and instance variables.

object: An object is an instance of a class that has state and behavior. For example, a dog is an object, its state is: color, name, variety, behavior: WAG tail, bark, eat and so on.

Class: A class is a template that describes the behavior and state of a class of objects.

method: The method is the behavior, a class can have many methods. Logical operations, data modifications, and all actions are done in a method.

Instance variables: Each object has a unique instance variable, and the state of the object is determined by the value of these instance variables.

2) When writing Java programs, you should pay attention to the following points:

Case-sensitive: Java is case-sensitive, which means that the identifier Hello is different from hello.

Class name: For all classes, the first letter of the class name should be capitalized. If the class name consists of several words, the first letter of each word should be capitalized, such as Myfirstjavaclass.

Method Name: All method names should start with a lowercase letter. If the method name contains several words, the first letter of each subsequent word is capitalized.

Source file name: The source file name must be the same as the class name. When saving the file, you should use the class name to save the filename (remember that Java is case-sensitive), and the suffix of the file name is. java. (a compilation error is caused if the file name and the class name are not the same).

Main method Entry: All Java programs are executed by the public static void main (String []args) method.

4. Experiment Summary:

An error occurred at the beginning of the Direct installation of Eclipse, and the reason for the Internet search was because there was no suitable java Runtime environment and then the JDK was updated to install successfully. When you create a new project, be aware that the name cannot be duplicated or you cannot create it. Also, the name of the first public class should correspond to the project name, otherwise the established program will not run successfully. Basically mastered the use of Eclipse , the Java programming method also has a basic understanding.

Yunfei Zhang 201771010143 "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.