Java Description Design Patterns (06): Builder Patterns

This article source code: GitHub. Click here || GitEE. Click here I. Life Scene Based on the builder model, the software development process is described. 1. Code Implementation /** * Software development based on builder pattern description */ public class C01_InScene { public static void main(String[] args) { BuilderSoft builde ...

Posted by tbuzz on Mon, 02 Sep 2019 07:34:23 -0700

Enumerated Interface Implementation

Links to the original text: https://blog.csdn.net/u012291108/article/details/51509988 Java Enumeration Classes and Custom Enumeration Classes and enum Declarations and Implementation Interfaces ...

Posted by everlifefree on Wed, 28 Aug 2019 04:38:35 -0700

Java Concurrency -- Thread Safety

We are no strangers to the term concurrency, which usually refers to the simultaneous execution of multiple tasks. In fact, this is not entirely true, "parallel" is the real sense of simultaneous execution, while "concurrent" is more focused on Multi-task alternate execution. Sometimes we see people chewing and talking, whic ...

Posted by pakmannen on Sun, 25 Aug 2019 23:29:52 -0700

JDK Source Priority Blocking Queue

Today we continue to talk about the implementation of blocking queue. Today's protagonist is Priority Blocking Queue. From the naming point of view, it should be orderly. After all, it's priority queue. So what's the actual situation? Let's look at its internal implementation together and explain in advance, because Priority Blocking Queue is i ...

Posted by Sturm on Sat, 24 Aug 2019 02:14:46 -0700

Java Description Design Mode (01): Single Case Mode

1. Single Case Mode 1. Conceptual illustrations Singleton Design Mode Definition: Ensure that this class has only one instance and that automatic instantiation provides this object to the system. 2. Sample Code package com.model.test; public class Singleton { // Recording unique instances using static variables private static Singleton ...

Posted by yogibear333 on Fri, 23 Aug 2019 17:38:34 -0700

Annotation-based SpringAOP source parsing

Note that it takes a long time to read this article In the previous 2 articles: AOP Source Code Analysis (1)AOP Source Code Analysis (2) In, we set up an environment for SpringAOP source analysis and described how the @EnableAspectJAutoProxy annotation and postProcessBeforeInstantiation methods load all enhancements.This article describes the ...

Posted by The_Stranger on Thu, 22 Aug 2019 19:03:02 -0700

Has the thread pool been used?

Has the thread pool been used? Thread pool advantage The main task of thread pool is to control the number of running threads, put tasks into the queue in the process of processing, and then start these tasks after thread creation. If the number ...

Posted by Niyati_1984 on Mon, 19 Aug 2019 01:28:30 -0700

Phase III API

Phase 3: API One: What you need to focus on when looking at API s 1. Watching bags 2. Look at the explanation. 3. Look at the structure 4. Look at the method: Look at the explanation of the method, look at the modifier, then return the value, and see ...

Posted by kam_uoc on Sun, 18 Aug 2019 07:02:45 -0700

Class Loader-Reflection-Modularization

1. Class loader Class 1.1 Loading [Understanding] Description of Class Loading When a program wants to use a class, if the class has not been loaded into memory, the system will initialize the class through three steps: class loading, class con ...

Posted by smilesmita on Thu, 15 Aug 2019 04:27:54 -0700

thread [6] - thread pool

thread [6] - thread pool 1. Thread pool concept It is a container that contains several threads. Usually a project has only one thread pool. When the program starts, it loads threads. When you need threads, you take threads from the thread pool and process tasks. When you use them, you will not de ...

Posted by danharibo on Mon, 12 Aug 2019 05:08:11 -0700