Java learning notes -- Java language foundation (classloader, reflection)

1, Classloader Loading overview of class 1.1 Class loading overview When a program wants to use a class, if the class has not yet been loaded into memory, The system will initialize this class in three steps: loading, connecting and initializing. Load It means to read the class file into memor ...

Posted by emcb_php on Wed, 04 Mar 2020 06:16:36 +0100

Architect's internal mental skill, a detailed explanation of the decorator model necessary for the reconstruction project experience

1, Application scenario of decorator mode In our life, for example, add an egg to a pancake, add some fruit to the cake, decorate the house, etc. Extend the responsibilities of some extra objects to objects. Decorator Pattern means that it provides a more flexible alternative (extending the function of the original object) than inheritance with ...

Posted by kutyadog on Fri, 28 Feb 2020 12:50:01 +0100

Docker's Custom Mirror Upload Aliyun

Introduction to Alpine Linux 1.Alpine Linux is a lightweight Linux distribution. It is different from the usual Linux distribution (centos, Ubuntu), Alpine uses musl libc and BusyBox reduces system size and runtime resource consumption. 2.Alpine Linux provides its own package management tool ...

Posted by lanjoky on Sun, 23 Feb 2020 05:29:38 +0100

settings.xml configuration file not found for Maven plug-in of IntelliJ IDEA

I. overview Apache Maven is a software engineering management and integration tool. Based on the concept of project object model (POM), Maven is able to manage project construction, reporting and documentation through a central information management module. There are many advantages of building proje ...

Posted by vbzoom.com on Fri, 21 Feb 2020 16:04:25 +0100

Use of java object-oriented 21 interface interface

/* Use of interface s 1. Define an interface using the format of interface interface name {}. The primary purpose of an interface is to be implemented by an implementation class.(interface-oriented programming) 2. Interfaces and classes are side-by-side structures in java. 3, Members inside the inte ...

Posted by y.t. on Fri, 21 Feb 2020 03:46:25 +0100

What has HashMap JDK changed since 1.8?

Recommend a video resource of Gupao College: link: https://pan.baidu.com/s/1SmSzrmfgbm6XgKZO7utKWg Password: e54x First, I will answer the questions that students didn't add in the previous release "be careful when using HashMap". I'd better say how HashMap solves the problem of dead cycle in JDK8. The link list part corresponds to t ...

Posted by zampu on Thu, 20 Feb 2020 09:17:21 +0100

jdk1.8 java.io.FileInputStream class source reading

introduce jdk explained: public class FileInputStream extends InputStream A FileInputStream gets input bytes from files in the file system.What files are available depends on the host environment. FileInputStream is used to read raw byte streams such as image data.To read a string, consider using File ...

Posted by Darrel on Mon, 17 Feb 2020 03:22:39 +0100

JavaSE learning notes-Day12

1, Introduction of containers and generics No matter what language it is, it is necessary to deal with data in the process of developing programs. In order to better accommodate these data, we introduced the concept of array in the previous study, which is indeed a good way to accommodate data, but ar ...

Posted by yanjchan on Wed, 12 Feb 2020 13:10:04 +0100

Presto cluster deployment (upgrade)

Let's talk about the last step of preparing to upgrade presto, because the pre deployed Presto machine itself deployed a CDH cluster (customer's home), and the machine was Centos6.x. according to the JDK on the Cloudrea official website, it can't move. Later, it was found that his JDK environment variab ...

Posted by B of W on Tue, 11 Feb 2020 11:48:16 +0100

Common serialization methods for redis

Generalization The main serialization methods of redis are string serialization, json serialization, xml serialization, jdk serialization. The implementation classes of org.springframework.data.redis.serializer.RedisSerializer can be consulted. For json serialization, jackson serialization is the official implementation, and fastjson has corre ...

Posted by linkin on Fri, 07 Feb 2020 18:16:29 +0100