Double non slag Java, grinding a sword in four years, GC Roots interview
As shown in the following code, a is a local variable in the stack frame. When a = null, because a acts as a GC Root, a is disconnected from the instance new Test(), so the object will be recycled.
publicclass Test {
public static void main(String[] args) {
Test a = new Test();
a = null;
}
}
2. The object referenced by the ...
Posted by Scutterman on Tue, 04 Jan 2022 14:35:50 +0100
"Fierce blade in the snow" did you chase it? Why is he so angry. Is there anything you don't know? Python to tell you.
This issue is a crawler and data analysis of the popular online drama "fierce knife in the snow". The total number of crawlers is 1W comments, which is very suitable for newcomers to practice. In the case, the emotional text analysis of comments is specially added for your reference.
Crawler: since Tencent's comment data is encap ...
Posted by cry of war on Tue, 04 Jan 2022 14:33:38 +0100
Binder overview to quickly understand binder system
prefaceAs we all know, Binder is the main interprocess communication suite in the Android system. More specifically, many articles call it Binder driver. Why is it a driver? What is the driver? Let's uncover it step by step from the Binder in the kernel from the bottom up. This article focuses on helping readers have a brief understanding of Bi ...
Posted by loquaci on Tue, 04 Jan 2022 12:28:09 +0100
Interviewer: what is the general principle of the Handler mechanism?
prefaceThis article is not written to analyze how the Handler is used. The purpose is to look at the evolution of the Handler from a design point of view and why there are four classes: looper, messagequeue, Handler and message.I The nature of thread communication?The main difference between threads and processes is that threads share memory. I ...
Posted by paolo on Tue, 04 Jan 2022 04:51:19 +0100
Python basic exercises, including answer analysis
Hello, I'm spicy.
Today, I'll sort out some Python exercises [including answer analysis]. You can try it yourself first, and then check with the answer analysis at the end of the text. I hope it can help you.
Exercises
1. Use the formatted output of the string to complete the display of the following business cards
==========My busin ...
Posted by mizz key_me on Mon, 03 Jan 2022 22:41:16 +0100
The interviewer was asked the difference between the Linux commands su and sudo?
Click on "end of life", pay attention to the official account.
Daily technical dry goods, delivered at the first time!
I've been confused about the two commands su and sudo before. Recently, I specially searched the information in this regard, and finally figured out the relationship and usage of the two. This article systematically ...
Posted by numerical25 on Mon, 03 Jan 2022 22:38:25 +0100
Knowing these 20 regular expressions can save 1000 lines of code
Regular expression, a very old and powerful text processing tool, can quickly realize a very complex business logic with only a very short expression statement. Mastering regular expressions can greatly improve your development efficiency.
Regular expressions are often used to verify fields or arbitrary strings, such as the following JavaScrip ...
Posted by KFC on Mon, 03 Jan 2022 20:10:08 +0100
Go Web framework | Gin introduction, one-day tutorial
Gin framework
Basic installation
1. First, you need to install Go (version 1.10 + is required), and then you can use the following Go command to install Gin.
go get -u github.com/gin-gonic/gin
2. Import it into your code:
import "github.com/gin-gonic/gin"
Usage example:
package main
import (
"net/http"
"github.com/ ...
Posted by coditoergosum on Mon, 03 Jan 2022 16:21:49 +0100
Spring Boot is a way to exclude automatic configuration, which is very worth seeing!!!
The automatic configuration provided by Spring Boot is very powerful. In some cases, the automatic configuration function may not meet our needs. We need to customize the configuration. At this time, we need to exclude / disable the automatic configuration of some classes of Spring Boot.
For example, data sources and e-mail provide automatic c ...
Posted by shwanky on Mon, 03 Jan 2022 15:43:55 +0100
Actual combat: how to integrate JWT in SpringBoot to realize login registration
JWT can be understood as an encrypted string, which consists of three parts: header, payload and signature
It is used by the header and payload encrypted by base64 The JWT string is formed by connecting the strings, then encrypting them with salt secret combination through the encryption method declared in the header, and then forming the JWT ...
Posted by msaz87 on Mon, 03 Jan 2022 15:28:45 +0100