Base64Utils is used quickly. Daniel summarizes himself. 500 pages of "Java growth notes"
Test example:
public class Bese64Utils extends Base64Utils {
public static void main(String[] args) {
String str = "https://blog.csdn.net/weixin_42798851/article/details/118678116?spm=1001.2014.3001.5501";
// encode decode
byte[] encode = encode(str.getBytes(StandardCharsets.UTF_8));
System.out.println ...
Posted by dark_destroyer on Wed, 15 Dec 2021 03:04:47 +0100
Condition source code analysis and waiting notification mechanism, interview questions for Java Senior Software Engineers
So we can see ConditionObject The waiting queue is managed by holding the head and tail pointers of the waiting queue. The main thing to note is Node Class reuse in AQS Medium Node Class, its node state and related attributes can be viewed[AQS Article on the implementation principle of]( ),If you read this article carefully, right condition ...
Posted by manishdugar on Wed, 15 Dec 2021 01:04:38 +0100
2021 Android factory interview (five bytes, latest open source)
6. We check the getClassLoader() method and find that the returned PathClassLoader inherits from BaseDexClassLoader
7. Then we check BaseDexClassLoader and find that it creates a pathList object of DexPathList type when it is created, and then calls pathList when it finds class Method of findClass
8. Then we check the findClass in the DexPath ...
Posted by whitepony6767 on Wed, 15 Dec 2021 00:05:13 +0100
Read the JVM object creation and memory allocation mechanism
Dear friends, when we create a new object, how is the object produced? Let's talk about the object generation process and memory allocation mechanism. We can talk about it during the interview, which is definitely a bonus.
1. Check when loading class
During the execution of the virtual machine, Execute to new keyword (new keyword, object clo ...
Posted by caramba on Tue, 14 Dec 2021 22:29:51 +0100
LeetCode Interview Topic 4
49. Alphabetic word grouping
You are given an array of strings. Please group the heterographic words together. A list of results can be returned in any order. Alphabetic words are new words that result from rearranging the letters of the source word, and the letters in all source words are usually used exactly once. Example:
input: strs = ...
Posted by webbnino on Tue, 14 Dec 2021 19:07:01 +0100
Class. The difference between forName and classLoader
Explanation
Class in java. Both forName() and lassLoader can load classes. ClassLoader is a class loader that follows the parental delegation model and ultimately calls the startup class loader. It implements the function of "getting a binary byte stream describing this class by its fully qualified name", getting it into the binary s ...
Posted by ProTec on Mon, 13 Dec 2021 20:10:17 +0100
7 pictures, realize a simple version of Vue router from zero, which is too easy to understand!
prefaceHello, I'm Lin Sanxin. I'm talking about the most difficult knowledge points in the most easy to understand words. I believe everyone must have used Vue router, that is, routing, in Vue project. Therefore, in this article, I will not explain the basic explanation of Vue router. I will not explain the source code of Vue router to you. I w ...
Posted by shazam on Thu, 09 Dec 2021 09:58:59 +0100
Summary of classic java interview questions (JavaSE)
1, JavaSE interview questions
1.1 self increasing variable
What should the following program output:
public static void main(){
int i=1;
i=i++;
int j=i++;
int k=i+++i*i++;
System.out.println("i="+i);
System.out.println("j="+j);
System.out.println("k="+k);
}
The answer is:
i=4
j=1
k=11
The execution instru ...
Posted by bprof on Thu, 09 Dec 2021 08:50:29 +0100
[Java] detailed steps for connecting JDBC to database (necessary for interview)
Catalogue of series articles
The purpose of this article is to explain in detail the six steps of connecting to a database using JDBC
The first step is to register the explanation link of the driver: JDBC - MySQL registers the driver (reflection) in the way of class loading_ m0_56164356 blog - CSDN blog
// 1. Register drive ...
Posted by azsolo on Wed, 08 Dec 2021 21:36:38 +0100
Vue Router: how to implement a front-end routing?
President Liu returns again. Today, the military industry and lithium battery are catching up, which has injected their own wages and strength into China's economy
I believe that for front-end development engineers with a certain foundation, routing is no stranger. It originally originated from the server. In the server, routing describes the ...
Posted by inosent1 on Wed, 08 Dec 2021 01:19:23 +0100