New Feature of JDK 1.8--Analysis of Lambda Implementation Principle
Analysis of Lambda Implementation Principle
One guess
Sample of 1 Lambda expression
2.1 guess 1
2.2 guess 2
2.3 guess 3
Two validation
1. Obtaining bytecode files by decompiling tools
2 Verify the correctness of the above transformation
How is the static lambda lambda $0 function called?
In order to support functional ...
Posted by raker7 on Sat, 11 May 2019 06:07:11 -0700
Design Patterns | Single Column Patterns >7 Implementation
Singleton pattern is a common design pattern, and may be the least code in design pattern. But less doesn't mean that it's easy, easy to use, easy to use, and easy to use. Because it involves a lot of Java underlying knowledge such as class loading mechanism, Java memory model, volatile and so on.
brief introduction
The singleton pattern belong ...
Posted by zzman on Sat, 11 May 2019 00:37:14 -0700
Viewing Design Patterns with JDK Source Code: Simple Factory, Factory Method, Abstract Factory
Detailed description of three factory models:
Simple factory model:
Scenario: The factory class is responsible for creating fewer objects, the client only cares about the parameters that are passed into the factory class, and does not care about how to create the logic of the object.
Disadvantage: If you want to add new products, you need to ...
Posted by mars16 on Fri, 10 May 2019 12:07:41 -0700
Tomcat Introduces Installing jdk to Install Tomcat
Tomcat introduction
The development language of LNMP framework is PHP language. PHP is a very popular language for developing web programs. In the early years, asp was popular. It is a programming language running on Windows platform. However, because of its poor security, website developers began to switch to php, and PHP is relatively safe ...
Posted by varecha on Fri, 10 May 2019 07:21:53 -0700
Annotation Problems in Spring
Annotation Overview
Since JDK 5.0, Java has added support for metadata, namely Annotation. Annotation is actually a special tag in the code. It is used to replace the configuration file. That is to say, the traditional way tells the class how to run through the configuration file. With the annotation technology, developers can tell the cl ...
Posted by ghettopixel on Fri, 10 May 2019 06:50:00 -0700
Javascript Unit Test Tool-Jest Learning Notes (1)
Write before
First of all, this is not a complete tutorial on Jest. It is just a little casual notes that one takes when he comes to Jest. Most of the content is translated into some official documents.Just let people who want to know jest know quickly what jest does and how to do it.For how to test the project, especially Reac ...
Posted by []InTeR[] on Fri, 10 May 2019 03:30:39 -0700
Understanding Java HashMap Source
HashMap Source Analysis
Previous articles analyzed the source code of the ArrayList, LinkedList, Vector, Stack List collections. In addition to the List collections, the Java container contains Set and Map as two important collection types.HashMap is the most representative and the collection of Maps we use most often.This article tries to ana ...
Posted by poleposters on Fri, 10 May 2019 03:22:39 -0700
Notes on Perf Analyzing CPU Performance Problems
This article is just a note.
scene
Observation of CPU usage of processes
Observe CPU usage of functions in the process:
sudo perf top -p <pid>
Display function call chain at the same time:
sudo perf top -g -p <pid>
Sampling results are recorded for subsequent analysis, and - g records the call chain:
sudo perf record -g -p <pid&g ...
Posted by Apenvolkje on Fri, 10 May 2019 03:14:39 -0700
spring-boot-2.0.3 External story of different series - spring boot event mechanism, absolutely worth your attention
Preface
This article was meant to continue discussing the springboot startup source with you, but it seems that no one has the courage to look at it anymore. Today, instead of talking about the springboot startup source, let's first look at an interesting topic. What's more, you should already know, that's the spring-boot event in the title.
Ma ...
Posted by Zeradin on Fri, 10 May 2019 02:56:40 -0700
JDK source reading: java timing tasks, Timer and Schedule ThreadPool Executor
Article directory
Timer
Design core
Constructor
schedule
Advantages and disadvantages
ScheduledThreadPoolExecutor
DelayWorkQueue
ScheduleExecutorService
schedule
scheduleAtFixedRate
scheduleWithFixedDelay
Complex Task Scheduling
Task scheduling refers to the automatic execution of tasks based on a given time point, a ...
Posted by Haroskyline on Mon, 06 May 2019 02:50:39 -0700