Java
-
Skillfully use one line of HashMap code to count the number of words
brief introduction JDK has been updated iteratively, and many familiar classes have quietly added some new method feat…… -
Java secure coding guide: mutability variability
brief introduction Mutable (variable) and immutable (immutable) objects are often used in the process of Java programm…… -
Use of Java Concurrent exchange
brief introduction Exchange is a concurrent class introduced by Java 5. As its name implies, exchange is used for exch…… -
This paper solves the little secret of string coding in Java
brief introduction In this article, you will learn about the relationship between Unicode and UTF-8, utf-16 and UTF-32…… -
The essence of ABA problem and its solution
brief introduction The full name of CAS is compare and swap, which is the basis of Java synchronization class, Java ut…… -
Use of executorservice in Java concurrency
Executorservice is an asynchronous execution framework in Java. It is convenient to create a multithreaded execution e…… -
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…… -
New features of jdk14: jfr, JMC and jfr event flow
New features of JDK 14: jfr, JMC and jfr event flow brief introduction Java flight recorder (jfr) is a diagnostic and …… -
The difference between wait and sleep in Java
In this article, we will discuss the differences between wait () and sleep () methods in Java. And discuss how to use …… -
New gitbook export pdf
NPM module of gitbook Markdown PDF using vscode plug-in use Command@R_675_2419 @ GitBook Exporter -
Introduction and use of ThreadPool in Java
Thread pool introduction Executors, executor and executorservice ThreadPoolExecutor ScheduledThreadPoolExecutor ForkJo…… -
Junior sister learning java IO: what about writing files
brief introduction Younger martial sister has put forward a lot of strange requirements for senior brother F, to forma…… -
Implementing if / else logic in Java 8 stream expressions
brief introduction In stream processing, we usually encounter the judgment of if / else. How do we deal with such prob…… -
Java secure coding guide: the use of ThreadPool
Introduction @ h_ 502_ 21 @ in Java, in addition to using a single thread, we also use ThreadPool to build a thread po…… -
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…… -
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……