Implementation of concurrent thread pool and blocking thread pool

Executors create thread pool There are many kinds of thread pools in java. The most convenient way is to create thread pools by Executors. You can directly specify the size of thread pools, such as Executors.newFixedThreadPool(int nThreads). But convenience not only hides the complexity, but also bu ...

Added by gravedig2 on Mon, 20 Jan 2020 08:41:30 +0200

How to solve the source not found problem when viewing JDK source code in Eclipse

This article introduces how to view the JDK source code on eclipse. If you have used pysharm IDE under Python, you will find that it is not as easy to use as eclipse. As far as the source code function is concerned, it is not as e ...

Added by davidguz on Sun, 19 Jan 2020 06:08:06 +0200

Detailed java static and dynamic proxies

Catalog 1. Static Agent 2. Dynamic Agent (1) JDK dynamic proxy (2) Cglib Dynamic Agent (3) Differences between jdk dynamic proxy and cglib dynamic proxy Proxy is a common design pattern for providing a proxy for other objects to control access to an object.The proxy class is responsible for pr ...

Added by xardas on Sat, 18 Jan 2020 03:49:06 +0200

Please refer to java8 localdatetime and other time user manuals (all), mark them first and then read them

Preface Java 8's time and date api provides us with great convenience. How to be familiar with the use of time api is also a very important knowledge point for learning java 8. Let's learn together. This article has a lot of code, which can be used as a tool. When you need to use it, please refer to it ...

Added by dc277 on Fri, 17 Jan 2020 13:44:36 +0200

Day 17 of learning java - Java collection framework

Java collection framework Java collection overview Front storage objects, arrays, disadvantages A Java collection is like a container in which you can put references to multiple objects. Java collection classes can be used to store multiple objects with different numbers, and can also be used to store ...

Added by thepip3r on Wed, 15 Jan 2020 15:01:36 +0200

Jenkins builds and publishes Java projects

Article directory Preparation Install maven Building job Publish war package Preparation Clone private warehouse to local: [root@linux01 ~]# git clone git@github.com:AsnFy/test_java.git [root@linux01 ~]# ls test_java/ README.md Download the source code of zrlog for testing: [root@linux01 ~]# wg ...

Added by everknown on Wed, 15 Jan 2020 13:19:35 +0200

Introduction to Collection interface

A Collection represents a Set of objects and is the root interface in the Collection system. Some elements are allowed to have repetition, some are not allowed, some are ordered and some are not. JDK does not provide the direct implementation of concrete classes of this interface, but only the implementation of sub interfaces and abstract clas ...

Added by williamZanelli on Tue, 14 Jan 2020 10:54:25 +0200

Eclipse error reporting

First post the error message... Failed to load JavaHL Library. These are the errors that were encountered: D:\Genuitec\Common\plugins\org.tigris.subversion.clientadapter.javahl.win32_1.6.17\ssleay32.dll: The operating system cannot run %1. D:\Genuitec\Common\plugins\org.tigris.subversion.clientadapter.javahl.win32_1.6.17\l ...

Added by theperfectdrug on Sun, 05 Jan 2020 22:59:41 +0200

Comparison between Iterator and Enumeration

Difference between Iterator and Enumeration In Java collections, we usually traverse the collection through "iterator" or "enumeration". Enumeration is an interface. Its source code is as follows: package java.util; public interface Enumeration<E> { boolean hasMoreElements(); E nextElement(); } Iterator is ...

Added by raahatazim on Mon, 30 Dec 2019 19:56:40 +0200

Principle and simple implementation of java agent technology

Note: This article defines the operation of adding corresponding logic before and after function execution as MOCK. 1. Introduction When communicating with QA classmates one day, I found that QA classmates have the need to stop the method for a period of time when calling for a method. I was curious about the functionality of this part, so I de ...

Added by lomokev on Mon, 30 Dec 2019 10:42:44 +0200