20165301 2017-2018-2 "Java Programming" third week study summary

Source: Internet
Author: User

20165301 2017-2018-2 "Java program design" The third week study summary textbook Study content Summary fourth chapter: Class and Object
    • class :
    • Declaration of class: Class+ class Name
    • Class Body: Declaration of Member Variable + method (local variable + statement)

    • Object
    • Construction method: As with the class name, no type
    • To create an object:
    • Declaring objects: Class name + object name
    • Working with objects:
      Object. Variables
      Object. Method
    • Object references and entities: two objects of the same type, same reference, same entity
    • This keyword : Represents an object that must be called by an object and cannot be present in a class method.
    • Package
    • Format: Package Name
    • If you run the main class with the package name, the main class full name is the package name. The main class name.
    • Import statement
    • Import java.util.*.

Problems in teaching materials learning and the solving process
    • Issue 1: With package compilation, how to place the file location at run time.
    • Problem 1 Solution: Put the relevant files in the same folder and run.
    • Issue 2: How to compile when there are multiple Java source files
    • Problem 3 Solution: Try compiling under the Linux system, view the directory with tree and draw a conclusion. Just compile the main class Java source file once.
Problems in code debugging and the resolution process
    • Issue 1: When there are multiple Java source files, you cannot compile using javac-d bin Src/***.java.
    • Problem 1 Solution: Javac ***.java directly in the src file, the resulting multiple class files are in the SRC folder.
Code Hosting
    • Code submission Process

    • Code Amount

(run result of statistics.sh script)

Last week's summary of the wrong quiz

See the Homework Blog

Learning progress Bar
lines of code (new/cumulative) Blog Volume (Add/accumulate) Learning Time (new/cumulative) Important Growth
Goal 5000 rows 30 Articles 400 hours
First week 11/11 1/1 4/4
Second week 286/297 2/3 6/10
Third week 722/1004 1/4 10/20

20165301 2017-2018-2 "Java Programming" third 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.