Java
-
JDK dynamic proxy and cglib bytecode enhancement
1、 JDK dynamic agent Java in Java Lang.reflect package has its own proxy support. This class (proxy. Java) is used to…… -
What happens when CPU or memory usage is too high
During the development process, sometimes we find that the CPU / memory occupied by the JVM remains high, which is inc…… -
Java handles multipart / mixed requests
1、 Multipart / mixed request multipart / mixed and multipart / form date are formats for uploading multiple files. …… -
Introduction to jctools
JCTools As early as 1996, some papers put forward the concept of lockless queue. Later, the high performance of destro…… -
Introduction to Java agent
1、 Write in front Java agent technology appears in jdk1 After 5, it is relatively unfamiliar to most people, but we h…… -
Multithreaded programming learning eight (atomic operation class)
brief introduction Atomic operation means "the smallest particle that cannot be further divided", while atomic operati…… -
Java code specification
1、 Foreword This article refers to Alibaba java development manual, which mainly defines some code specifications and…… -
Multithreaded programming learning IV (use of lock)
1、 Foreword This article will introduce that using the lock object in Java 5 can also achieve the effect of synchroni…… -
Multithreaded programming learning 11 (detailed explanation of ThreadPoolExecutor)
1、 ThreadPoolExecutor parameter description public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long k…… -
Hash algorithm and hash code
1、 Introduce Looking at this result, the problem arises. There is clearly groudhog {number = 3} in the map. Why does …… -
HashMap, hashtable, and concurrenthashmap thread safety issues
1、 HashMap HashMap is thread unsafe. JDK 1.7 HashMap adopts the data structure of array + linked list. Under the back…… -
Java 8 completable future programming
1、 Introduction the so-called asynchronous call is actually a method that allows the operation to continue without …… -
Java generics and type erasure
1、 Concept When the Java language is in a version where generics have not yet appeared, type generalization can only …… -
Use of Java timer
1、 Concept 2、 Precautions for timer class 1. To create a timer object is to start a new thread, but the newly starte…… -
Java Native network programming
1、 Concept Since its birth, Java language has been closely linked with the network. At the Sun World Conference in 19…… -
Skip list and concurrentskiplistmap
1、 Skip list For a single linked list, even if the linked list is ordered, if you want to find a data in it, you can …… -
JDK SPI mechanism
1、 Overview We first saw the SPI mechanism in the implementation of Dubbo. Recently, we found that it is not a new th…… -
See what Web attack technologies are available
1、 Foreword HTTP protocol has the characteristics of stateless, no connection and best effort. The attacks on Web sit…… -
Multithreaded programming learning three (communication between threads)
1、 Summary 2、 Waiting / notification mechanism 1. "Wait / notify" mechanism: wait / notify mechanism. Wait causes th…… -
Multi thread cross backup with wait / notify
1、 Mission Create 20 threads, of which 10 threads back up data to database a, the other 10 threads back up data to da…… -
Analysis of problems caused by improper use of resttemplate
background Problem phenomenon Analysis process These three problems are interrelated. The fuse is the third problem, t…… -
Common methods of stringutils tool class
Foreword: I saw that Daniel in the project team wrote code and used stringutils tool class to do string operation, so …… -
Multithreaded programming learning one (the basis of Java multithreading)
1、 Process and thread concepts Process: the execution of a program is called a process. Each process has independent …… -
Multithreaded programming learning II (concurrent access to objects and variables)
1、 Concept 2、 Synchronized synchronization method 1. The problem of non thread safety exists in the instance variabl…… -
Multithreaded programming learning 12 (reading notes)
1、 Multithreading semantics 2、 Java Memory Model 3、 Memory semantics for synchronized, volatile, and final 4、 Other -
Java reflection mechanism
1、 Concept Java reflection is a method by which a java program can load a class whose name is known only when it runs…… -
See what web authentication technologies are available
Basic certification Basic authentication (basic authentication) is an authentication method defined from http / 1.0. B…… -
Elegant encoding using Lombok
1、 Introduction and use Lombok is a Java library that can simplify java code in the form of simple annotations and im…… -
Java file stream operation
1、 Concept In Java, The input and output of the file is through the stream (stream). A stream must be an active end a…… -
Multithreaded programming learning 6 (blocking queue in Java)
introduce Blocking queue means that when the queue is full, the queue will block the thread inserting elements until t…… -
Collaboration Library in Java – quasar
1、 Synergetic process A process can produce many threads. Each thread has its own context. When we use multithreading…… -
Final keyword
1. Overview The most common meaning is to declare that "this thing cannot be changed". The reason for banning change m……