Java
-
-
Java security coding guide: dead lock
brief introduction In order to ensure the security of shared data in Java, we introduce the lock mechanism. With a loc…… -
The difference between interrupt, interrupted and isinterrupted in Java
In the previous article, we talked about calling interrupt () to stop a thread. This article will explain in detail th…… -
Java safe coding guide: thread safety rules
brief introduction If we introduce shared variables into multithreading, we need to consider thread safety in multithr…… -
Java secure coding guide: double detection of locks
brief introduction Double detection locking mode is a design mode. We reduce the cost of acquiring locks by detecting …… -
The use of futuretask in Java
Introduction to futuretask Conversion of callable and runnable Run as runnable -
New features of jdk9: String compression and character encoding
brief introduction What is the underlying storage of string? I believe most people will say it's an array. If you ask …… -
Lambda expressions and closures
brief introduction We usually talk about closures, which generally refers to the environment of JavaScript. Closure is…… -
PriorityQueue and priorityblockingqueue
PriorityQueue and priorityblockingqueue brief introduction Generally speaking, queues are FIFO. Of course, we also int…… -
Java has a deep understanding of shallow copy and deep copy
brief introduction Copying objects is a common problem in Java. There are two types in Java, base type and reference t…… -
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 …… -
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…… -
Abstractqueuedsynchronizer (AQS), the base of synchronization class
Abstractqueuedsynchronizer (AQS), the base of synchronization class We introduced many synchronization classes before,…… -
Understand enummap and enumset
Understand enummap and enumset brief introduction Generally speaking, we will choose to use HashMap to store data in k…… -
Use of countdownlatch in Java concurrency
In Java concurrency, controlling the access of shared variables is very important. Sometimes we also want to control t…… -
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 …… -
[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…… -
[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] 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 reference types you must know [Conclusion]
Summary of four reference types Reference level: strong reference > soft reference > weak reference > virtual…… -
Java zero foundation entry series – Day2 Java integrated development environment idea
After the development environment is built, you also need an integrated development environment, that is, IDE, to prog…… -
Open source a set of original text processing tools: java + bat script to realize automatic batch processing of statement tools
Original / Zhu Jiqian This tool was developed by the author in early 2018. After two years, I accidentally thought of …… -
You must know the java reference type — a detailed explanation of the source code of ReferenceQueue
definition ReferenceQueue is a reference queue used to store reference objects to be recycled. explain For soft refere…… -
Open source a set of original text processing tools: java + bat script to realize automatic batch processing of statement tools
Original / Zhu Jiqian This tool was developed by the author in early 2018. After two years, I accidentally thought of …… -
[introduction to Java] comparison of day3 abstract classes and interfaces
We've finished talking about abstract classes and interfaces. Now let's make a comparison. In fact, to be honest, ther…… -
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…… -
[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 …… -
[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] 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] 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] 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…… -
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……
