Recent Posts
-
[introduction to Java] Day7 Java internal classes – local internal classes
Today we introduce the second inner class, the local inner class. What are local inner classes? As the name suggests, …… -
[introduction to Java] Day8 Java inner class — anonymous inner class
Today, let's look at another more magical class - anonymous inner class. As its name indicates, this class is anonymou…… -
Java zero foundation entry series – day14 cloning of Java objects
Today we will introduce a concept, object cloning. This article is difficult. Please be prepared first. If you don't u…… -
Java zero foundation entry series – Day6 Java string
String is our most commonly used type. Each string represented by double quotation marks is a string. A string in Java…… -
[introduction to Java] day21 Java container class (IV) ArrayList source code analysis
Today we will introduce ArrayList, the most commonly used implementation class in the list interface. The source code …… -
Deep discussion on Java strong reference, soft reference, weak reference and virtual reference
Deep discussion on strong reference, soft reference, weak reference and virtual reference Reference types are not ofte…… -
Java collection source code analysis (6): HashMap
summary HashMap is an implementation class based on hash table, which is unsafe for the next thread of map interface. …… -
[introduction to Java] day34 detailed explanation of Java container class (XV) detailed explanation of weakhashmap
The detailed source code series are analyzed based on jdk8 explain At the end of the Java container explanation series…… -
Java zero foundation entry series – day13 inheritance and polymorphism of Java classes
Inheritance is a very important feature of a class. What? You don't even know about inheritance? Are you trying to pis…… -
[difficult Java PROBLEMS] the execution sequence of try catch finally when there is a return
There is such a problem that everyone should be familiar with exception handling, similar to the following code: When …… -
[introduction to Java] day15 revisiting Java generics — Generic wildcards and upper and lower boundaries
The last article introduced what generics are, why generics should be used and how to use generics. I believe you have…… -
[introduction to Java] day18 Java container class (I) collection interface
Today, let's take a look at a big guy in Java, that is, container. The so-called container is specifically used to hol…… -
Traversal operation of ArrayList and LinkedList
summary A well-known little knowledge of a java program is that ArrayList and LinkedList are best deleted by iterator …… -
[introduction to Java] day31 detailed explanation of Java container class (XIII) detailed explanation of TreeSet
After the introduction of treemap in the previous article, let's take a look at the more water TreeSet. This paper wil…… -
You must know the java reference type — reference source code analysis
definition Reference refers to the reference object itself, and referent refers to the object referenced by reference.…… -
How to write a singleton pattern for performance optimization
Singleton model is the most common design pattern in interview. It is an object creation pattern used to generate a sp…… -
[introduction to Java] Day12 Java agent – cglib dynamic agent
Today, let's introduce another more powerful agent, cglib dynamic agent. What is cglib dynamic proxy? Let's first revi…… -
[introduction to Java] day23 Java container class (VI) HashMap source code analysis (middle)
In the previous article, the basic contents of HashMap were introduced in detail, and the get and put methods were ana…… -
You must know the type of java reference — detailed explanation of softreference source code
definition Softreference is a soft reference, and its referenced objects will be recycled when memory is insufficient.…… -
[introduction to Java] Day30 detailed explanation of Java container class (XII) detailed explanation of treemap
Today, let's take a look at another general of the map family - treemap. Two generals of the map family have been intr…… -
Details of memory in for and while in Java
Wen / Zhu Jiqian Java program structure has sequence structure, loop structure, branch structure and jump structure, a…… -
[introduction to Java] Day2 interface
After talking about abstract classes in the previous article, this article mainly explains what is more abstract than …… -
Java zero foundation entry series – day3 java basic data type
The first two articles have built the development environment. If you have completed the deployment step by step accor…… -
[introduction to Java] day14 a preliminary study on generics in Java
Generics is a very interesting and important concept. This article will briefly introduce the generics feature in Java…… -
You must know the type of java reference — a detailed explanation of phantom reference source code
definition Phantom reference is a virtual reference that does not affect the life cycle of an object, nor can it get a…… -
Java method parameters can only be passed by value!
In common parlance, the transfer of method parameters is divided into two types: value transfer and reference transfer…… -
[introduction to Java] day22 Java container class (V) HashMap source code analysis (I)
The first part mainly explains the structure, important parameters and methods in HashMap, as well as the places and a…… -
[introduction to Java] Day24 Java container class (VII) HashMap source code analysis (II)
KeySet Let's take a look at the keyset first. The member variable keyset in HashMap saves all key sets. In fact, this …… -
[introduction to Java] Day11 Java agent – JDK dynamic agent
Today, let's take a look at another proxy method of Java - JDK dynamic proxy The proxy method we introduced earlier is…… -
[introduction to Java] day28 detailed explanation of Java container class (x) detailed explanation of LinkedHashMap
Today, let's introduce LinkedHashMap, another hash table in the container class. This is the closing disciple of HashM…… -
[introduction to Java] day16 Java exception handling (Part 1)
Dangdang, Dangdang, ladies and gentlemen, I haven't seen you for a long time. I miss you very much. Today, let's talk …… -
You must know the type of java reference — a detailed explanation of the source code of WeakReference
Define @ h_ 403_ 1 @ WeakReference is a weak reference, which will not affect the collection of objects by the garbage……