Java multithreading -- Introduction to ThreadLocal and memory leakage

ThreadLocal ThreadLocal is called Thread local variable. It creates a copy of the variable in each Thread. Each Thread accesses and modifies the copy of the variable in this Thread, but the variables between threads cannot access each other. ThreadLocal is not a Thread. ThreadLocal has four methods: ThreadLocal action ThreadLocal allows th ...

Posted by TheFilmGod on Sun, 16 Jan 2022 15:19:37 +0100

[object oriented] construction method, main method explanation, static keyword, tool class creation and help document, and create object initialization process

object-oriented I Construction method 1. Question: we have never written a constructor in the class before, but we can still create objects. Where is the constructor used? be careful: 1,If we don't give a construction method, JVM Automatically provides a construction of an empty method body without parameters method 2,If we give a con ...

Posted by liamjw on Sun, 16 Jan 2022 14:17:05 +0100

Elementary level of C language -- branch and loop statements

In the last article, we had a preliminary understanding of the concept of C language. In the next series of articles in the beginning of C language, we will step closer to C language and see what tricks we can make. Just like learning to drive a motor vehicle, we already know what a car is, what parts it has, and some necessary traffic rules. N ...

Posted by bhi0308 on Sun, 16 Jan 2022 12:23:58 +0100

Java basic syntax

Java basic syntax notes Annotation is a description of program functions, marked with a specific symbol, and the program will not execute annotation during operation. //Single-Line Comments /* multiline comment */ /** *Document comments can be prompted when called */ keyword Definition: a string given special meaning by the Java lan ...

Posted by TobesC on Sun, 16 Jan 2022 11:08:13 +0100

Java SE basic learning notes 1

The follow-up content is in the notes on basic learning of Java SE 2, which has not been completed The content is a little messy, there may be errors, and it will be modified frequently Recommended dark horse Java Tutorial Station B link Java characteristic Interview may ask Object oriented cross platform is the most important Three basi ...

Posted by Francoise on Sun, 16 Jan 2022 08:26:16 +0100

Bye, RocketMQ! A new generation of message oriented middleware with visual management and complete documentation!

Pulsar, a popular messaging middleware recently, wanted to learn. I found that many articles on the Internet introduce performance and compare Kafka, and there are few articles on practice! So I practiced with the official documents and wrote this article, which is estimated to be the first pulsar actual combat article in China. I hope it will ...

Posted by Aeolus on Sun, 16 Jan 2022 06:10:24 +0100

Build the SpringBoot project from scratch -- realize the registration function

previously on The last article has introduced the design process of the front-end project and how to use HbuilderX to run wechat applet. At the end of the article, I briefly introduced the method of requesting data from the back-end java project with ajax. Let's take a look at this article in detail! Before reading this article, let's take a ...

Posted by Denness on Sat, 15 Jan 2022 23:54:32 +0100

Mobile phone to view computer video, a simple personal video website based on springboot

brief introduction Why do I suddenly want to do this, or is it because the memory of the mobile phone is a little small, and it is not very convenient to use the computer to read the learning materials on the computer directly, or do I want to use the mobile phone directly, which gave birth to this idea. After all, as a new youth in the ne ...

Posted by domainbanshee on Sat, 15 Jan 2022 22:21:30 +0100

Reflection and annotation

I reflex 1. Concept Reflection: it means that our program can get Class Object, go"reverse"Loading of"A class",And create an object and call its properties and methods. Function: Unlock the relationship between classes"Coupling relationship",It is conducive to the later development and maintenance of the program!!! 2. Class loader 1. Cla ...

Posted by grandadevans on Sat, 15 Jan 2022 19:25:28 +0100

Java notes 4: reuse classes

Java notes 4: reuse classes Source: Java Switch statement (detailed usage) - java Tutorial - PHP Chinese network Class is the code organization unit in OOP programming. Whether it is OOP class or process oriented function, its purpose is to realize code reuse. There are two ways to realize code reuse through classes: Inheritance and compos ...

Posted by burnside on Sat, 15 Jan 2022 16:37:08 +0100