HashMap principles learned? (HashMap storage and expansion)

debug is familiar with HashMap's source code 1. New HashMap, when adding the first data (1) Execute new HashMap<>(); Call the constructor and set the load factor to the default load factor (0.75): static final float DEFAULT_LOAD_FACTOR = 0.75f; public HashMap() { this.loadFactor = DEFAULT_LOAD_FACTOR; // all other fields defau ...

Added by saeed99 on Wed, 15 Sep 2021 23:15:05 +0300

Multiple Threads Java Thread Pool seven parameters detailed

Multiple Threads Java Thread Pool seven parameters detailed /** * Creates a new {@code ThreadPoolExecutor} with the given initial * parameters. * * @param corePoolSize the number of threads to keep in the pool, even * if they are idle, unless {@code allowCoreThreadTimeOut} is set * @param maximumPoolSize t ...

Added by jabapyth on Tue, 14 Sep 2021 19:42:14 +0300

php interview error prone summary I

1, empty, isset,is_null difference Definition: isset() is used to detect whether a variable has been declared and its value is not NULL. In other words, as long as the variable value is not NULL, it returns the true value; empty() is used to detect whether a variable is empty. True values are returned in the following cases: empty string, fals ...

Added by divinequran on Sun, 12 Sep 2021 00:29:12 +0300

Summarize interview questions about vue and js [continuously updated]

1, vue 1. vue bidirectional data binding principle Vue adopt Object Above the prototype defineProperty method, For each Vue In the file data Data traversal, Pass for each variable or attribute defineProperty Data rewriting to achieve two-way binding 2. How to unbind bidirectional data binding First, define global variables, and then json.s ...

Added by electricshoe on Sat, 11 Sep 2021 08:35:43 +0300

[data structure and algorithm, explosion]

At this time, there are only two elements in the array, so we only need to constantly compare the sizes of child elements in the two elements to obtain a complete ordered array, as shown in the following figure: This is a complete merging and sorting process. Next, let's implement it with code function mergeSort(arr) { // Combin ...

Added by WLW on Fri, 10 Sep 2021 02:13:58 +0300

What exactly is the ScodendaryNameNode for HDFS

0-Preface What does HDFS Secondary NameNode do? This is a classic basic interview question, and the interviewer has asked the interviewer many times (and of course many times). From the impression, about half of the interviewees can't answer correctly, and even give the answer "is not NameNode's hobby". In order to save spa ...

Added by samusk on Thu, 09 Sep 2021 19:31:11 +0300

SpringBoot unified log processing, 2021 Android interview

[the external chain image transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the image and upload it directly (img-XSJ80gT0-1630940490789)(I:\SpringBoot unified log processing \ img\slf4j log output process. png)] As can be seen from the figure, after the application calls the api interface of ...

Added by dsoftnet on Tue, 07 Sep 2021 08:25:13 +0300

[Huawei machine test of Niuke network] HJ28 prime partner

subject describe Title Description If the sum of two positive integers is prime, the two positive integers are called "prime partners", such as 2 and 5, 6 and 13, which can be applied to communication encryption. Now the society of cryptography asks you to design a program to select several pairs from the existing N (N is an even nu ...

Added by wdseelig on Mon, 06 Sep 2021 02:37:37 +0300

[spring cloud collection, Java interview questions for junior programmers of the company

2, How Eureka works 3, Eureka environment construction 1. Create a new moudle 2. Change pom 3. Write yml 4. Startup class 5. Test 4, payment8001 registered in Eureka 1.pom add dependency 2. Change yml 3. Annotate the startup class 4. Test 5, order80 register in Eureka The tests are as follows 1, What is Eureka? ============= E ...

Added by AudiS2 on Sun, 05 Sep 2021 20:31:06 +0300

Template Method Design Mode Theory and Application

This article is included in github and gitee , with my complete Java series of articles, you can read them for both study and interview (1) What is Template method First learn what a template is. When you specify a tool in a factory, you first design a template, and then make tools of various colors from it.Although the tools may be made in ...

Added by YourNameHere on Fri, 03 Sep 2021 09:12:17 +0300