Summary of java serialization
Catalog
What is object serialization
Why serialization and deserialization are required
Knowledge of serialization and deserialization
What if some fields in Java serialization do not want to be serialized?
Java Serialization Interface java.io.Serializable
Class refactoring using serialization and serialVersionUID
Java Externaliza ...
Posted by utahcon on Fri, 03 Dec 2021 11:13:51 -0800
Use the policy + factory pattern to completely kill if else in the code
For business development, the complexity of business logic is inevitable. With the development of business, the requirements will only become more and more complex. In order to consider various situations, many if else will inevitably appear in the code.
Once there are too many if else in the code, it will greatly affect its readability and ma ...
Posted by dabas on Fri, 03 Dec 2021 10:39:14 -0800
day01 - Assessment Question daily assignment - JavaSE day 1
## choice question
### Topic 1 (single choice):
**The following are computer hardware( D )**
#### Options:
A. QQ
B.WeChat
C.FeiQ
D.CPU
### Topic 2 (single choice):
**The following can be guaranteed java Programs run across platforms( A )**
#### Options:
A. JVM(java virtual machine)
B. Windows system
C. Linux sys ...
Posted by ludachris on Fri, 03 Dec 2021 09:49:05 -0800
Data Structure (Java) - High Frequency Interview Questions Related to Map and Set
1. Numbers that occur only once
Title Description: Given a non-empty integer array, each element occurs twice, except for one element that occurs only once. Find the element that only appears once. Example 1 Input: [2,2,1] Output: 1 Example 2: Input: [4,1,2,1,2] Output: 4
1. Ideas
1. The easiest way to think about it is to determine ...
Posted by Pig on Fri, 03 Dec 2021 09:21:25 -0800
[JVM source code analysis] the virtual machine interprets and executes Java methods
This article is compiled and published by jiumo (Ma Zhi), chief lecturer of HeapDump performance communityPart 29 - calling the main() method of the Java main classMany articles have been written to introduce the assembly code execution logic corresponding to bytecode instructions, and some assembly code logic corresponding to bytecode instruct ...
Posted by joel24 on Fri, 03 Dec 2021 07:51:24 -0800
Java framework born of "cloud": building native executables
Today, let's take a look at how much faster the native executable built by Quarkus is than the Spring application, Ecological maturity is not discussed here .
TLDR
Let's draw a conclusion and make a comparison with the Spring Web application with only one Controller.
Application start time: 0.012s vs 2.294s
Image size: ...
Posted by rm_phpbuilder on Fri, 03 Dec 2021 07:32:49 -0800
Interviewer: how is Mybatis loaded and executed in SpringBoot?
This article mainly describes how mybatis is loaded and executed in springboot. Because there will be a lot of content involved, this time we will only explain the call relationship and key code points. In order to avoid the article being too long and sleepy to read, some details that do not affect the overall process will not be involved.
Sou ...
Posted by pandhandp on Fri, 03 Dec 2021 07:03:05 -0800
Idempotent problem in concurrent scenario -- detailed explanation of distributed lock
Introduction: starting from an example of data duplication in nailing real person authentication scenario, this paper analyzes that the reason is idempotent failure caused by concurrency, and leads to the concept of idempotent. Aiming at the idempotent problem in concurrent scenario, a feasible methodology for realizing idempotent is proposed. ...
Posted by caspert_ghost on Fri, 03 Dec 2021 06:29:57 -0800
MyBatis learning notes 5 - multi table query
Preparation for multi table query: three tables are created. Previously used user table, newly created role table, account table, user_role table. The specific parameters in the table are as follows:
user table (mainly the header, which is filled in by itself):
role table: account table: user_role table: After these classes are created, r ...
Posted by dhiren22 on Fri, 03 Dec 2021 06:06:01 -0800
Introduction to synchronized keyword (autumn move) -- Part I
1, Mental process
In Java Concurrent Programming, the synchronized keyword is undoubtedly a frequently asked question. During the interview, many interviewers pay more attention to your understanding of the synchronized keyword and its underlying. If you can answer it, it will undoubtedly add points. The following is what I learned through mys ...
Posted by noaksey2000 on Fri, 03 Dec 2021 05:03:15 -0800