Java
-
Deadlock due to improper execution sequence
In order to ensure the safety of threads, we have introduced the locking mechanism, but if we use locking without rest…… -
Unexpectedly, the thread was starved to death!
When building a thread pool, we can build a thread pool for a single thread and a thread pool for multiple threads. So…… -
For everything about completable future, it’s enough to read this article
In the previous article, we explained future. In this article, we will continue to explain the usage of completable fu…… -
Junior sister learning java IO: file system and watchservice
brief introduction Younger martial sister encountered the problem of monitoring file changes this time. Elder martial …… -
New feature of JDK 14: instanceof pattern matching
New feature of JDK 14: instanceof pattern matching Jdk14 was officially released in March 2020. Unfortunately, the for…… -
Aslist and ArrayList have to tell stories
Aslist and ArrayList have to tell stories brief introduction When it comes to collection classes, ArrayList should be …… -
Spring 5. X Series tutorial: meet all your imagination of spring 5 – continuous update
brief introduction What makes the Java world better, programmers more friendly, and the baldness rate less high, so th…… -
Troubleshooting: using jfr to solve memory leakage
brief introduction Although Java has automated GC, there will be memory leaks. Of course, memory leaks in Java are dif…… -
You don’t know the secret of Java object serialization
brief introduction Did you know that serialization can use proxies? Do you know the security of serialization? Every j…… -
Java security coding guide: thread API call rules
Thread is indispensable in the development of multithreading in Java. What rules should we pay attention to when using…… -
Troubleshooting: analyze outofmemoryerror exceptions
brief introduction java. Lang. outofmemoryerror should be a very common error in Java applications. So what is the cau…… -
Java secure coding guide: number operation
brief introduction In Java, there are byte, short, int, long, float, double and char that can be called number. What s…… -
Jdk14 performance management tool: introduction to jstat
brief introduction As a programmer, I often worry about how to locate problems in Java programs or tune JVM performanc…… -
Introduction to splitter in Java 8 stream
Introduction to splitter in Java 8 stream brief introduction Splitter is an interface introduced in Java 8. It is usua…… -
Java secure coding guide: input verification
brief introduction In order to ensure the security of Java programs, we believe that any input from external users may…… -
[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] 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…… -
One of the java reference types you must know — weak references
definition Weak reference is a reference created by using WeakReference. Weak reference is also used to describe non e…… -
JDK1. 8 new feature lambda expression simplification. There is an optimization method of for loop in if else
In the daily development process, being able to write the code does not necessarily mean being able to write the code …… -
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…… -
[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 …… -
[difficult and miscellaneous problems of Java] use Java core library to realize simple AOP
Spring is a very popular open source framework, and AOP (aspect oriented programming) is one of the most important con…… -
[introduction to Java] Day6 Java inner class – member inner class
What the inner class is, in short, is the class defined inside the class (serious nonsense). A serious inner class loo…… -
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 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…… -
[introduction to Java] Day9 Java internal class – static internal class
Today, let's talk about the last internal class in Java - static internal class The so-called static inner class is na…… -
[introduction to Java] callback in day4 Java
After another busy week, things have almost been solved. Finally, I can continue to write my blog (you've been waiting…… -
[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…… -
[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 – day4 variables and constants
This article mainly explains variables in Java, what variables are, the role of variables, and how to declare and use …… -
[introduction to Java] Day6 Java inner class – member inner class
What the inner class is, in short, is the class defined inside the class (serious nonsense). A serious inner class loo…… -
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……