Java Simple Knowledge Grooming

Source: Internet
Author: User

1. Java is a single inheritance structure: Each class inherits from the object class, which ensures that each object has some functionality

2. Java class permissions keyword: private, protected, public, protected compared to default, the protected method within the same package can be overridden by the quilt class, and DEFA Ult, you can't.

3. Java Class 3 elements: ' Commonplace, the use of object-oriented programming people know that a class has 3 features: "Encapsulation", "Inheritance", "polymorphic", here to say is "polymorphic", Java due to "inheritance" caused by "polymorphism", so that we can easily use such as on the transformation of objects such as ...

4. Java object life cycle: Java uses an automatic garbage collection mechanism, and in half, it can easily be handled by a friend JVM without worrying about the life cycle of the object.

5. Exception handling: Compile-time Exceptions | Run-time exceptions, both inherited and Throwable

6. Static keyword: a member variable modified by the static keyword, loaded into the method first when the class first loads, and will not load "load once"

7.

8.

9.

10.

Java Simple Knowledge Grooming

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.