包含标签:Java 的文章
-
Six tough moves of current limiting, with detailed code and evaluation results
For the convenience of work, last year I rented out my house in the northern suburbs and moved to the southern suburbs…… -
Why do you recommend enumerations?
Enumeration is a new data type in JDK 1.5. Using enumeration, we can well describe some specific business scenarios, s…… -
Spring boot (XIV) rabbitmq delay queue
1、 Foreword Usage scenario of delay queue: 1 If the order is not paid on time, the order will be cancelled after 30 m…… -
How to prove that sleep does not release the lock, but wait releases the lock?
Wait locking example public class WaitDemo { private static Object locker = new Object(); public static void …… -
99% of programmers are using Lombok. Is the principle so simple? I got one too| Recommended collection!!!
I believe most people are familiar with Lombok, but little is known about its implementation principle and disadvantag…… -
Six methods of file writing, this method has the best performance
There are only two ways to operate files in Java: character stream and byte stream, and there are many implementation …… -
Use of threadlocalrandom in Java
Use of threadlocalrandom in Java In Java, we usually need to use Java util. Random to facilitate the production of ran…… -
Classification and use of functional interfaces in Java
brief introduction Java 8 introduces lambda expression, which actually represents an anonymous function. Before Java 8…… -
Detailed explanation of internal classes and internal interfaces in Java
brief introduction Generally speaking, when we create classes and interfaces, each class is a file, and each interface…… -
Use jmh (Java microbenchmark harness) in Java for performance test
The full name of jmh is java microbenchmark harness, which is a suite used for performance testing in open JDK. The su…… -
Deep understanding of Java generics
brief introduction Generics is a concept introduced by JDK 5. Generics are mainly introduced to ensure the security of…… -
It’s 2020. Don’t you know these five java ide artifacts?
Tiobe's programming language ranking list came out in April. Java still ranks first, and the latest version of Java ha…… -
Maven’s build lifecycle and common plugins
brief introduction Maven and gradle should be the two building tools most used by modern Java programmers. Before they…… -
Java safe coding guide: thread safety rules
brief introduction If we introduce shared variables into multithreading, we need to consider thread safety in multithr…… -
Junior sister learning java IO: buffer and buff
brief introduction The younger martial sister goes farther and farther on the road of learning NiO. The only thing tha…… -
Use of operation type and peek in Java 8 stream
Use of operation type and peek in Java 8 stream brief introduction As a stream operation, Java 8 stream has two types …… -
Use of ThreadLocal in Java
ThreadLocal is mainly used to store data for the current thread, which can only be accessed by the current thread. Whe…… -
Implementation of non blocking algorithm (lock free)
Implementation of non blocking algorithm (lock free) In the last article, we talked about the disadvantages of using l…… -
New features of jdk10: VAR generics and multiple interface implementations
brief introduction In the new feature of jdk10: local variable type VaR, we talked about why and how to use var. Today…… -
Lambda expression best practices
brief introduction Lambda expression is a functional programming framework introduced by Java 8. In previous articles,…… -
Junior sister learning java IO: those strange buffers in NiO
brief introduction Demons and monsters show up quickly. Today, senior brother f helped the younger martial sister to k…… -
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 …… -
Spring Boot 2. X Series tutorial: seven days from scratch to master spring boot – continuous update
brief introduction Since the birth of spring, spring has become the de facto J2EE standard. As a lightweight J2EE appl…… -
Use site Maven plugin to build a public warehouse on GitHub
brief introduction Maven is a building tool we often use in developing Java programs. In the process of team developme…… -
Troubleshoot: using jfr to analyze performance problems
brief introduction The performance analysis of Java program is a very difficult problem. Especially for a very complex…… -
Non blocking synchronization mechanism and CAS
Non blocking synchronization mechanism and CAS We know that before Java 5, synchronization is achieved through the syn…… -
New features of jdk11: http API and reactive streams
New features of jdk11: http API and reactive streams brief introduction In the new feature of jdk11: new HTTP API, we …… -
Five important new features of jdk12
Five important new features of jdk12 Introduce JVM constant API Extended switch statement Unicode 11.0 support Square …… -
New feature of jdk12: compactnumberformat
New feature of jdk12: compactnumberformat brief introduction Jdk12 introduces a new class for formatting numbers calle…… -
The use of futuretask in Java
Introduction to futuretask Conversion of callable and runnable Run as runnable -
Detailed explanation and misunderstanding of Java 8 stream reduce
Detailed explanation and misunderstanding of Java 8 stream reduce brief introduction The stream API provides some pred…… -
Synchronized keyword in Java concurrency
In a multi-threaded environment, we often encounter resource competition. For example, multiple threads need to modify……
