8 pictures Understand Java, 8 pictures Understand java

Source: Internet
Author: User

8 pictures Understand Java, 8 pictures Understand java

A picture is better than a thousand words. The illustration below is from the Java tutorial on the Program Creek website. Currently, they have the most votes.

1. character string immutability

The following figure shows what the code has done.

String s = "abcd"; s = s. concat ("ef ");

2. Differences between equals () and hashCode () Methods

HashCode is designed to improve performance. The difference between the equals () method and the hashCode () method is:

3. Java exception class hierarchy

The red part in the figure shows an exception. They must be captured or declared as throwing this exception in the function.

4. Hierarchy of collection classes

Note the differences between Collections and Collections. (Collections contains various static polymorphism methods related to Set Operations)

5. Java synchronization

The Java synchronization mechanism can be illustrated by analogy between buildings.

6. Alias

Aliases mean that multiple variables point to the same updatable memory block. These aliases are different object types.

7. Heap and stack

The diagram shows the location of the method and object in the runtime memory.

8. Data Area During Java VM running hours

The graphic shows the data area of the entire VM runtime.

I have a public account, and I often share some Java-related dry goods. If you like my share, you can search for "Java head" or "javatuanzhang" to follow up.

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.