包含标签:Java 的文章
-
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…… -
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…… -
Deeply understand the difference between HashMap and treemap
Deeply understand the difference between HashMap and treemap brief introduction HashMap and treemap are two classes co……