Learn Java design mode again: actual memo mode "simulate the scenario of profile rollback during the online process of Internet system"

Author: little brother FuBlog: https://bugstack.cn -Original series of special articles Precipitation, sharing, growth, so that they and others can have a harvest! 😄 1, Preface Can't it be an excuse for R & D? Sometimes the function complexity is high and it is difficult to realize, sometimes the construction period is short and the implem ...

Posted by emmbec on Sun, 28 Jun 2020 21:45:05 -0700

Two implementation methods of java Dynamic agent

Last article we wrote about static agents Agent mode of design mode [1] static agent Let's talk about java's dynamic proxy today. 1, Why use dynamic proxy In fact, the dynamic agent makes up for the shortcomings of the static agent. The static agent needs to write a proxy class for each proxy object, ...

Posted by shiznatix on Sun, 28 Jun 2020 20:14:24 -0700

Why is enumeration recommended?

Enumeration is a new data type in JDK 1.5. With enumeration, we can well describe some specific business scenarios, such as spring, summer, autumn and winter in a year, Monday to Sunday in a week, and various colors, as well as some state information, such as error codes. Enumeration type not only exists in Java language, but also can be found ...

Posted by pinxxx on Sat, 27 Jun 2020 23:12:24 -0700

Deep understanding of the synchronized underlying source code is enough for beginners

Deep understanding of synchronized underlying source code preface This article analyzes the implementation logic of synchronized from the JVM source code, so as to better understand the depth of synchronized. Process: the basic unit of operating system resource allocation. Thread: the basic unit of ...

Posted by azaidi7 on Thu, 25 Jun 2020 21:55:14 -0700

Problems encountered in SpringBoot 2.3.5 Integrating redis cache custom JSON serialization.

Currently, I am learning springboot from teacher Lei Fengyang in Silicon Valley. The springboot version used in the teacher's course is 1.5, while I use 2.3.5. The difference between the 2.x and 1.x versions of springboot is quite significant, with many of the underlying code changed and quite a bit cha ...

Posted by rantsh on Wed, 24 Jun 2020 18:31:20 -0700

Deep analysis of JVM class loading mechanism

get ready: Markdown authoring tool Youdaoyun notes Idea development tools GItHub project address analysis: The whole process of class loading and running: When we use the java command to run the main function of a class to start the program, we first need to load the main class into the JVM through th ...

Posted by khaitan_anuj on Tue, 23 Jun 2020 03:23:00 -0700

Java knowledge summary 1 - Java program foundation

1.1 Java introduction What is Java Java is a programming language developed by James Gosling of SUN (acquired by Oracle) in the early 1990s. It was officially released in 1995. Java is a cross platform language based on JVM Programming languages are compiled and interpreted. Compiled languages suc ...

Posted by Kurt on Sun, 21 Jun 2020 22:09:13 -0700

Summary of common categories of a Xin, a rookie

Summary of common categories (I) Object: java.lang.Object Object:Java All classes in (custom class, class provided by jdk) inherit from object (all root classes) public int hashCode() returns the hash code value of the object (the hash code value of each object in memory is different). It has a relat ...

Posted by rel on Fri, 19 Jun 2020 22:37:43 -0700

What's the difference between deep clone and shallow clone? What are the ways to realize it?

Cloning can be used to quickly build a copy of an existing object, which is part of the Java foundation and one of the frequently asked knowledge points in an interview. What are shallow cloning and deep cloning? How to achieve cloning? Typical answer Shadow Clone is to copy all the attributes in the ...

Posted by northk on Fri, 19 Jun 2020 22:05:06 -0700

An article gives you a thorough understanding of the implementation of HashMap without worrying about being bullied.

Article catalog HashMap preface What is a red black tree Discoloration rotate Sinistral Dextral brief introduction Basic elements of HashMap Node Construction method HashMap() HashMap(int initialCapacity) HashMap(Map<? extends K, ? extends V> m) Add method put Get method get Expand resize ...

Posted by NoorAdiga on Thu, 18 Jun 2020 23:25:45 -0700