Java Description Design Mode (05): Prototype Mode
Source code for this article: GitHub. Click here || GitEE. Click here
1. Introduction to Prototype Model
1. Basic concepts
The prototype mode belongs to the object creation mode.Indicate the type of all created objects by giving them a prototype object, and then create more objects of the same type by duplicating the prototype object.
2. Patte ...
Posted by kritro on Thu, 29 Aug 2019 18:54:55 +0200
Thread Startup Process Analysis and Design Patterns
As we all know, there are two ways to construct threads in Java. The first way is to inherit the Thread class and override the run method. The second way is to implement the Runnable interface and the run method. But the final boot is started through the start method of the Thread object. So since the logic is written in the run method, why cal ...
Posted by mebar3 on Mon, 26 Aug 2019 17:12:24 +0200
Java Web Development: Software Internationalization (Dynamic Element Internationalization)
The second part of software internationalization is dynamic element internationalization.
Data such as values, currencies, times, dates and so on can not be separated from the application simply like words because they may be generated dynamically while the program is running, but need special processing. API classes (in the java.util package ...
Posted by Helaman on Mon, 26 Aug 2019 07:57:28 +0200
Data Structure and Algorithms - Array - Java ArrayList Source Analysis - Completed Today
The links to this article are as follows:
https://blog.csdn.net/yinwenjie/article/details/90760664
https://blog.csdn.net/yinwenjie/article/details/92018379
https://snailclimb.top/JavaGuide/#/java/collection/ArrayList?id=arraylist%E7%AE%80%E4% ...
Posted by Nukedesign on Fri, 23 Aug 2019 11:21:31 +0200
java Learning Notes (Intermediate) - JDK Dynamic Agent
I. What is the Agency Model
I believe you all know the concept of agent. In business, agents are everywhere. Assuming you are going to buy something, you can not go to the real manufacturer to buy, nor can you directly demand from the manufacturer, the agent is a bridge between the buyer and the manufacturer. If you want to buy or customize wha ...
Posted by newb on Thu, 15 Aug 2019 15:01:50 +0200
Data Structure in Algorithms-Linear Table Explanation
Preface
Pass through the front Data Structure and Algorithmic Leader Now that we know some of the concepts and importance of data structures, let's summarize the related content of linear tables today. Of course, I share with you my understanding.
In fact, to be honest, many people may still be confused about the differences and links between ...
Posted by sys4dm1n on Wed, 14 Aug 2019 09:27:50 +0200
[Thread pool of java thread-related knowledge] What is a thread pool?
What is thread pool and how to use it?
Thread pool is to put multiple thread objects into a container, when used, it can take threads directly in the pool instead of new threads, which saves the time of opening sub-threads and improves the efficie ...
Posted by gofer on Wed, 14 Aug 2019 08:45:17 +0200
Finally, I understand DUBBO SPI
I. DUBBO SPI usage scenarios
Dynamic loading of corresponding implementation classes according to configuration, SPI extensions have many classes:
II. dubbo spi extension point
(1) dubbo SPI Foundation:
Get the class name according to the key in META-INF file, and then get the instance of the clas ...
Posted by jokkis on Sat, 10 Aug 2019 13:08:05 +0200
[Learning Notes-Java Collection-1] ArrayList Source Analysis
brief introduction
ArrayList is a List implemented as an array, which has the ability to dynamically expand compared to arrays, so it can also be called a dynamic array.
Inheritance System
ArrayList implements List, RandomAccess, Cloneable, java.io.Serializable and other interfaces.
ArrayList implements List and provides basic add, delete, tr ...
Posted by scottfossum on Thu, 08 Aug 2019 18:20:28 +0200
Underlying Implementation of Dead Synchronized--Heavy Lock
This article is the third article on the bottom implementation of dead Synchronized, which is about the implementation of heavy lock.
This series of articles will comprehensively analyze the synchronized lock implementation of HotSpot, including bias lock, lightweight lock, heavy lock lock lock lock, unlock, lock upgrade process and source cod ...
Posted by Lassie on Thu, 08 Aug 2019 13:17:02 +0200