Implementation of singleton mode
1, What is singleton mode
Singleton Pattern is one of the simplest design patterns in Java. This type of design pattern is a creation pattern, which provides the best way to create objects.
This pattern involves a single class that is responsible for creating its own objects while ensuring that only a single object is created. This class prov ...
Posted by bigphpn00b on Wed, 09 Feb 2022 07:54:21 +0100
The essence of Kafka is written in this "limited notes", an online interview guide
1, Foreword
Recently, the company's project is ready to start reconstruction, and the framework is selected as Spring Boot. This article mainly records the process of building Spring Boot Maven multi module project in IDEA. This article can be said to be a complete dry goods of practical projects. Interested friends can continue to read it
Al ...
Posted by batfink on Wed, 09 Feb 2022 06:01:07 +0100
Source Analysis of HashMap - Three main points (the reason for the capacity being 2nd power, calculation method of hash value and detailed expansion process)
1. Illustrating data structures
1. Infrastructure
(1) Arrays
Arrays are essentially a continuous block of memory that holds something in common. Array elements can be quickly positioned and manipulated through array subscripts. However, its insertion and deletion operations are inconvenient, requiring all elements following the insertio ...
Posted by DeeDee2010 on Tue, 08 Feb 2022 20:00:04 +0100
Too strong! The four mainstream current limiting strategies can be implemented through redis
introduction
In web development, function is the cornerstone. In addition to function, peacekeeping and protection are the top priority. Because during the operation of the website, the business may be abnormal due to the sudden traffic, and may also be maliciously attacked by othersTherefore, our interface needs to limit the traffic. Commonly ...
Posted by drewbie on Tue, 08 Feb 2022 04:56:18 +0100
Java collection framework hash table HashMap source code analysis
๐จโ๐ Blogger homepage: Java tribute dust collection Miraitow ๐ Creation time: ๐ด February 7, 2022 20:23-2:03 ๐ด ๐ Content introduction: source code analysis of common collections. Later, there may be collections such as ArrayList ๐ Reference: [Xiao Liu speaks source code] โณ In short, I encourage you to watch the officials and try new t ...
Posted by joenjeru on Mon, 07 Feb 2022 19:43:31 +0100
[notes on February 7]
A room with headlights on on a cloudy day
catalogue
Option 1
The following statement is correct
The total number of handshakes generated by establishing and closing a tcp is
What are the similarities between TCP protocol and UDP protocol in computer networks
Given the port number bound to a process, the command to query the process is ...
Posted by andym01480 on Mon, 07 Feb 2022 19:40:38 +0100
JavaScript basic interview question summary 01
1. What are the basic types of JavaScript? What are the reference types? What is the difference between null and undefined?
Data type:
Basic data types: Number, String, Boolean, undefined, null
Reference data types: Function, Object, Array
difference:
undefined: indicates the value when the variable is declared but not initialized
Null: i ...
Posted by soccerstar_23 on Sun, 06 Feb 2022 21:23:01 +0100
Java basic interview -- serialization, reflection, copy
In the previous article, I have published common interview questions. Here I took some time to sort out the corresponding answers. Due to my limited personal ability, they may not be in place. If there are unreasonable answers, please give me some advice. Thank you here.
ย
This paper mainly describes the basic content serialization, reflectio ...
Posted by damien@damosworld.com on Sat, 05 Feb 2022 10:41:55 +0100
Leetcode algorithm interview sprint actual combat 12 (stack)
978 ยท basic calculator
Implement a basic calculator to calculate a simple expression.
The expression string may contain left parenthesis' ('and right parenthesis'), plus sign' + 'or minus sign' - ', non negative integer and space'.
The expression given is always reasonable. Learned the usage of eval. An error was encountered: E ...
Posted by w00kie on Fri, 04 Feb 2022 12:25:21 +0100
Data integration and answers of the latest Java collection interview questions of major factories in 2022
Question 1: What are the differences between Iterator and Enumeration interfaces?
The version of traversing the interface of jdmap1 and ArrayList.2 is supported. Iterator supports the fail fast mechanism. When multiple threads operate on the contents of the same collection, a fail fast event may be generated.
The Iterator has three method int ...
Posted by Beatnik on Fri, 04 Feb 2022 05:27:17 +0100