How many traversal methods does HashMap have? Which is recommended?
This article has included the interview selection series, Gitee open source address: gitee.com/mydb/interv...
There are many HashMap traversal methods, and different JDK versions have different writing methods. JDK 8 provides three HashMap traversal methods, which breaks the embarrassment that the previous traversal methods are "very bl ...
Added by will on Thu, 09 Dec 2021 01:48:22 +0200
Summary of 2021 front end react high frequency interview questions
Summary of 2021 front end react high frequency interview questions1. What is the implementation principle of react router?The idea of client routing implementation:hash Based Routing: by listeninghashchangeEvent, sensing the change of hashYou can change the hash directly through location.hash=xxxH5 history based routing:You can change the URL t ...
Added by alco19357 on Wed, 08 Dec 2021 08:09:20 +0200
leetcode essence of algorithm interview in Dachang 21. Tree
leetcode essence of algorithm interview in Dachang 21. Tree
Video Explanation (efficient learning): Click to learn
catalog:
1. Introduction
2. Time and space complexity
3. Dynamic planning
4. Greed
5. Binary search
6. Depth first & breadth first
7. Double pointer
8. Sliding window
9. Bit operation
10. Recursion & divide and ...
Added by leewad on Wed, 08 Dec 2021 00:32:52 +0200
2022 essential react interview questions with answers
2022 essential react interview questions with answersReact Video Explanation Click to learn1. How to use the strict mode of react and what is its use?StrictMode is a tool used to highlight potential problems in applications. Like Fragment, StrictMode does not render any visible UI. It triggers additional checks and warnings for its descendant e ...
Added by power3 on Tue, 07 Dec 2021 14:15:47 +0200
http cache questions that may be asked during the interview
After several school recruitment interviews, I found that http cache has been used as an interview question. When I first met this question, I was confused, so I summarized the following contents
In any front-end project, it is common to access the server to obtain data. However, if the same data is repeatedly requested more than once, the red ...
Added by adrianl on Sat, 04 Dec 2021 01:34:23 +0200
JavaSE - Reflection - Annotation
JavaSE - Reflection - Annotation
Learning objectives of this section:
Understand the concept of annotation;Understand and master the use of annotations;Understand and master the Annotation interface and JDK meta Annotation;Understand and master the writing method of custom annotation;Understand and master how to use reflection to process anno ...
Added by Wireless102 on Wed, 01 Dec 2021 11:05:22 +0200
How to analyze Java problems from the perspective of bytecode
preface
One day when i was wandering around Zhihu, i encountered such a problem: why is i the final result of face code 8?
public static void main(String[] args) {
int i = 1;
i += i += ++i + 2.6 + i;
}
Very simple two lines of code. If you encounter such a problem, how will you explain the problem clearly? Is the formula disassembled by J ...
Added by echoninja on Tue, 30 Nov 2021 07:41:38 +0200
Design model of Shenkeng interview questions
This picture is from a unicorn company in Shenzhen
Design model of Shenkeng interview questions
When I see this topic, I think it's very interesting. Isn't it to remove if else if? Isn't this a typical strategy model? Of course, if else if cannot be completely eliminated by policy mode alone, and if can be eliminated by factory + policy mode ...
Added by superhaggis on Mon, 29 Nov 2021 05:33:46 +0200
HTML and CSS interview question 35
position is superimposed with display, margin collapse, overflow and float
1, The relationship among 'display', 'position' and 'float'
Figure below:
Set valueAfter conversioninline-tabletableinline, inline-block,run-in,table-row-group,table-column,table-column-group,table-header-group,table-footer-group,table-row,table-cell,table-captionbl ...
Added by php_user13 on Sun, 28 Nov 2021 20:26:48 +0200
Summary of JS interview questions
Previous points here: ↓ Summary of JS interview questions (I) Summary of JS interview questions (II) Summary of JS interview questions (III) 31. JS single thread or multi thread, how to display asynchronous operation
Reference answer:
JS itself is single threaded. It relies on the browser to complete asynchronous operations.
Resolu ...
Added by cocpg on Sat, 27 Nov 2021 06:07:14 +0200