Java8 date time API, Java advanced multithreading interview
plusNanos(int offset): increases the specified nanosecond
Reduce related methods
minusYears(int offset): decrease the specified year minusMonths(int offset): decrease the specified month minusWeeks(int offset): decreases the specified week minusDates(int offset): decrease the specified date minusHours(int offset): decrease the specified ...
Added by camdenite on Fri, 17 Dec 2021 00:17:09 +0200
Common algorithms for Javascript interview -- from freecodecamp
Find equivalent difference
Knowledge summary: symmetric difference. Mathematically, the symmetric difference of two sets is A set composed of elements belonging to only one set but not the other set. For example, the symmetric difference of set let A = [1,2,3] and let B = [2,3,4] is A △ B = C = [1,4]. This operation in set theory is equiva ...
Added by monloi on Fri, 17 Dec 2021 00:02:45 +0200
2021 new wave of programmer job hopping season, Java exception interview questions (2020 latest version)
Definition: exceptions in Exception except RuntimeException and its subclasses.
Features: the Java compiler will check it. If such an exception occurs in the program, For example, ClassNotFoundException (the specified class exception is not found) and IOException (IO stream exception), either declare and throw it through throws or catch it thr ...
Added by loureiro on Thu, 16 Dec 2021 23:52:14 +0200
Android network framework OkHttp source code analysis, BAT interview & Advanced
if (result == null) throw new IOException("Canceled");
return result;
} catch (IOException e) {
eventListener.callFailed(this, e);
throw e;
} finally {
client.dispatcher().finished(this);
}
}
We'll use it here `client` Object (actually created above) `RealCall` Passed in when `OkHttpClien ...
Added by wardo on Thu, 16 Dec 2021 22:39:37 +0200
Analysis of get and put methods of ConcurrentHashMap
In the interview, I often ask about JUC. The common one is CHM. Let's talk about the methods and operations of different versions of CHM
The underlying implementation of CHM in JDK7 is implemented by segmented segment array. Segment contains hashentries, and each HashEntry forms a linked list.
Common get methods:
First, obtain the lock of se ...
Added by Spudgun on Thu, 16 Dec 2021 22:22:17 +0200
Java handwriting algorithm interview questions
java written test handwriting algorithm interview questions with answers
1. Count the number of words in an English article.
public class WordCounting {
public static void main(String[] args) {
try(FileReader fr = new FileReader("a.txt")) {
int counter = 0;
boolean state = false;
int currentChar;
while((currentChar= fr.read()) != -1) {
if(cur ...
Added by mabwi on Thu, 16 Dec 2021 18:52:13 +0200
java foundation -- review the old and know the new series 1
catalogue
preface
Cache pool (constant pool)
1. Prove the existence of cache pool
2. Cache value range
Implicit type conversion
keyword
final
static
1. Static variable
2. Static inner class
this,super
Access modifier
java8 features
abnormal
Java collection (container)
1,List, Set, Queue, Map
preface
This series focuses on t ...
Added by robindean on Thu, 16 Dec 2021 15:15:05 +0200
hiveSQL advanced -- 10__ Tests whether a value exists in a set of data
0 - problem description
SQL tests whether there is a value in a group of data. You want to generate a Boolean value according to whether a group of row records contain a specific value. Imagine an example where a student will take several exams over a period of time. Suppose he takes three exams every three months. As long as he has pas ...
Added by Satria Ox41464b on Thu, 16 Dec 2021 13:58:28 +0200
Internet factory interview and examination center -- Design Mode
Blog address: Coding Lemon's blog All articles will be updated on the blog at the first time!
Big factory interview series fifth bullet!
This chapter is special. It may summarize all the common design patterns, and then I will mark out some of the most frequently asked design patterns. There are many contents, but they are dry goods!
In or ...
Added by phast1 on Thu, 16 Dec 2021 08:38:42 +0200
❤️ You can understand at a glance! Nanny level example explanation STL list container [ten thousand words sorting] ❤️
🎈 Author: Linux ape
🎈 Introduction: CSDN blog expert 🏆, C/C + +, interview, question brushing and algorithm. Please consult me, pay attention to me and chat privately if you have any questions!
🎈 Attention column: C/C + + interview customs collection (high quality articles are constantly updated...) 🚀
catalogue
1, What is a list? ...
Added by StripedTiger on Thu, 16 Dec 2021 08:36:28 +0200