JavaRush /Java Blog /Random EN /Top 8 Diagrams for Understanding Java
dio
Level 16
Москва

Top 8 Diagrams for Understanding Java

Published in the Random EN group
Sometimes a diagram replaces 1000 words. The following diagram is from Program Creek 's Java guide , and is the most voted on that site. I hope it helps you better understand what you already know. If the diagram is not clear, you can go to the original article and read the details. 1. String immutability Data immutability is the inability to change data after it has been created in memory. The following diagram shows what happens when the given code is executed: String s = "abcd"; s = s.concat("ef"); Top 8 Diagrams for Understanding Java - 1 2. Differences between equals() and hashCode() HashCode was created to improve performance. However, there is a difference between equals() and hashCode(): 1. If 2 objects are equivalent, they have the same hash. 2. If 2 objects have the same hash, they may or may not be equivalent. Top 8 Diagrams for Understanding Java - 2 3. Hierarchy of Java exception classes. Red highlighted exceptions that must be handled or declared in the method that throws them. Top 8 Diagrams for Understanding Java - 3 4. Hierarchy of collection classes. Notice the difference between Collections and Collections. Collection is the root interface in the collections hierarchy. Collections - A class that contains static methods that operate on and return collections. Top 8 Diagrams for Understanding Java - 4 Top 8 Diagrams for Understanding Java - 5 5. Java synchronization. The synchronization mechanism in java can be illustrated using a building as an example. (Special room, waiting room, lobby) Top 8 Diagrams for Understanding Java - 5 6. Antialiasing Antialiasing means that there are multiple aliases in a place that can be updated, and these aliases are of different types. Top 8 Diagrams for Understanding Java - 6 7. Stack and heap This diagram shows where methods and objects are located in RAM during program execution. Top 8 Diagrams for Understanding Java - 7 8. Data layers in the JVM during operation. The diagram shows shared data areas while the JVM is running. Top 8 Diagrams for Understanding Java - 8 Link to original Translated
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION