201671010113 2016-2017-2 The third week of Java programming

Source: Internet
Author: User

The third week of learning about Java is over, and now I'm learning more about it than I did in the first two weeks. And I feel that the topic of learning, can let me better grasp the point, I feel this method is very good. But I still feel a little out of touch with the machine class.

From the problem of class, in the array of String objects, the number of instances is the same as the number of elements, but for the direct amount of strings with the same string sequence, it is possible to discriminate with identities. Classes are classified into standard classes and third-party custom classes. The input source has the device and the file two kinds, the system.in is the standard input device. An entity consists of an instance domain and a method. The instance field is valid within the entire class, but the local variable is valid only within the method that defines it. Constructor is also called the constructor method, is a special method, the name must be the same as the class name, there is no return value, always with the new method call, with this call other constructors. A class can define many methods of the same name at the same time. The formal parameters, types, or order names of these methods are different, and the returned values are not the same as overloads. The generic method cannot be accessed with the class name, and an out-of-class object cannot access the class. Static-decorated fields are statically domain, non-static can access static member variables, and all objects share a static domain. A static method can be called by a class name or object, while other methods can only be called through an object.

Overall, this week still learned a lot of things, but there are some concepts are not clear, it may be a little contact for the sake of it, I believe that will be better. But the state of the machine class is really to be improved, later to focus more attention, try to catch up with the teacher's progress. and later PPT to see as early as possible, otherwise Tuesday Wednesday suddenly see too much can not accept, to Thursday all forget.

201671010113 2016-2017-2 The third week of Java programming

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.