A test engineer walks into a bar
A test engineer walks into a bar and asks for a beer;
A test engineer walks into a bar and asks for a cup of coffee;
A test engineer walked into a bar and ordered 0.7 glasses of beer;
A test engineer walks into a bar and asks for -1 beer;
A test engineer walked into a bar and ordered 2 ^ 32 glasses of beer;
A test engineer walked into ...
Posted by ephmynus on Sun, 30 Jan 2022 15:12:01 +0100
Java interview must ask, ThreadLocal ultimate
##Foreword During the interview, it is also common for the interviewer to investigate "ThreadLocal", so it is very necessary to understand it thoroughly Some interviewers ask straight to the point:
"Do you know ThreadLocal?" "Tell me about your understanding of ThreadLocal"
Of course, some interviewers will slowl ...
Posted by psychohagis on Sun, 30 Jan 2022 08:22:29 +0100
Tear the bottom layer of ArrayList by hand and thoroughly analyze the source code
Recommended reading:
Ali's two cool Classics: design mode + cache + Spring + virtual machine + MySQL + middleware + concurrency and other problems are all solvedHow to learn HTTP that big companies must ask? I suggest you read this article!Ant, byte and PDD social recruitment face by Java post (distributed + thread safety + MySQL+CAS)
ArrayLi ...
Posted by skippence on Sun, 30 Jan 2022 07:58:04 +0100
Comprehensive analysis of advanced core knowledge in Java -- Redis (introduction, basic data structure, jump table [introduction, implementation])
1, Five basic data structures
1. Introduction to redis
“Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.” —— Redis is an open source (BSD licensed) in memory data structure storage, which is used as database, cache and message agent. (from the off ...
Posted by TipPro on Sun, 30 Jan 2022 06:31:42 +0100
The individual income tax calculation method of 2022 year-end bonus to see how much you have been harvested
Calculation of individual income tax for year-end bonus
def nzjgs(n):
"""
:type n: float Total year-end bonus
:rtype: float Year end bonus tax payment
"""
tmp = n/12
if tmp <= 3000:
return n * 0.03
if 3000 < tmp <= 12000:
return n * 0.1 - 210
if 12000 < tmp <= 25000:
return ...
Posted by mikeyca on Sun, 30 Jan 2022 03:15:37 +0100
fucking great! The index in MySQL-8-0 - can be hidden
MySQL 8.0 has been released for a long time, but everyone may stay at 5.7.0 x. Even older. In fact, MySQL 8.0 has added many heavy new features, such as "hidden index" or "invisible index" introduced by the stack leader today.
What the hell is a hidden index?
Hide index literally means to hide the index, that is, invisible ...
Posted by dsp77 on Sun, 30 Jan 2022 02:57:19 +0100
How to serialize Java objects? Take a look at these two methods!
Why do Java objects need to be serialized
Serialization can convert objects into binary streams, and objects can be easily transmitted and saved in the network.
How to implement serialization
Implement Serializable interfaceImplement Externalizable interface
**The difference between the two interfaces is: * * the Serializable interface wi ...
Posted by turdferguson on Sun, 30 Jan 2022 00:41:18 +0100
How to quickly import a huge file of 30G hundreds of millions of data into the production environment? (Java)
If you were given a huge file containing 100 million lines of data, and you could convert the data into the production database within one week, how would you operate?
The above problem is that little black brother received a real business demand some time ago and migrated the historical data of an old system to the new production system throu ...
Posted by fourlincoln10 on Sat, 29 Jan 2022 23:41:36 +0100
Assignment between entity objects -- use of BeanUtils
Entity objects transfer values to each other. For example, assigning the value of VO object to entity object is a common function in the code. It is troublesome to assign values to each other through get and set. The operation can be easily completed with the help of tool class BeanUtils.
BeanUtils dependent package import
BeanUtils is a memb ...
Posted by 1042 on Sat, 29 Jan 2022 20:31:54 +0100
Talk about design mode: the embodiment of builder mode in jdk. What is the difference between it and factory mode?
Recommended reading:
This set of 40K+star learning notes on Github can help you handle more than 95% of Java interviews It's no exaggeration to say that this SpringBoot study guide can solve 98% of the problems you encounter The most comprehensive test questions are fresh: 70 + algorithm questions, nearly 30 kinds of knowledge points often ...
Posted by herod1 on Sat, 29 Jan 2022 18:33:25 +0100