Format string learning

Common formatting string functions Output: functionBasic introductionprintfOutput to stdoutfprintfOutput to the specified FILE streamvprintfFormat the output to stdout according to the parameter listvfprintfFormat the output to the specified FILE stream according to the parameter listsprintfOutput to stringsnprintfOutputs the specified number ...

Added by bunner bob on Mon, 17 Jan 2022 14:28:27 +0200

1, Knowledge points before two-dimensional array

preface Next, start sorting out the contents of Java. Because the contents in front of the array are basically similar to those in many languages, we will simply sort out the contents in one chapter, mainly starting from the object-oriented notes 1. Understanding java java features Java has the characteristics of simplicity, object-orie ...

Added by Optimo on Mon, 17 Jan 2022 12:40:27 +0200

JAVA learning record - Reflect

(ps: This article is applicable to super cute new, so it will say some basic things. Don't spray if you don't like it) catalogue Why is it called reflection?   There are three common methods for Java reflection foundation code: Let's take an example: Output: What's the use of reflection? Examples of optimizing code through reflectio ...

Added by jibosh on Sun, 16 Jan 2022 23:27:42 +0200

Understand WebSocket thoroughly

prefaceBefore the emergence of WebSocket, the front-end and back-end interaction usually used Ajax for HTTP API communication. However, if there are projects with real-time requirements, such as PVP battle or push message in chat room or game, the front-end needs to poll the back-end regularly. However, too fast polling may lead to too much pre ...

Added by MrJW on Sun, 16 Jan 2022 22:34:58 +0200

Develop a good habit of writing code

Good code style makes people look comfortable, easy to understand and have the desire to read. Poor code style can be daunting Lei Jun said that the code he once wrote was as beautiful as poetry This article will introduce some points that are easy to be ignored when writing code I Blank line Blank lines serve to separate program ...

Added by spookztar on Sun, 16 Jan 2022 21:26:46 +0200

Java thread notes

A thread does not own system resources. A thread has its own stack, counters, etc., but it is a resource shared with other threads of the process, not its own. Threads run independently. It is not known whether there are other threads, but they can communicate programmatically through sharing. The scheduling method is priority + preemption. Bec ...

Added by mark_c on Sun, 16 Jan 2022 19:08:59 +0200

The best ThreadLocal posture for programmers

1, Common scenarios 1. ThreadLocal is a copy of thread context. One of the most common ways to use ThreadLocal is to implicitly pass parameters to different methods by providing two public methods: set() and get(). For programming specifications, the number of parameters is limited when defining methods. Even in some large factories, the numbe ...

Added by tendrousbeastie on Sun, 16 Jan 2022 18:58:33 +0200

10. Understanding of SpringAop of SpringBoot

Understanding of spring AOP 01. Learning objectives Meet spring AOPUnderstand the principle of the underlying implementation of spring AOP JDK dynamic agentCGLIB agent Types of enhanced notifications for spring AOPDefinition of pointcut for spring AOPWhat is the default Aop proxy mechanism in Spring?What is the default Aop proxy mechanism ...

Added by websiteguy on Sun, 16 Jan 2022 16:29:41 +0200

GOlang basic knowledge < II >

Share the learning go website: Foreign websites: https://golang.org go programming website: https://golang.google.cn/ (go packages and functions can be viewed here) Rookie tutorial - Go: green hand Yibai tutorial - Go: Yi Bai tutorial W3c-Go: w3c Geek Go: Geek Go advanced programming GO language library: https://studygolang.com/pkgdoc (comm ...

Added by Ryuujin on Sun, 16 Jan 2022 16:00:11 +0200

Concurrent programming - Atomic

Hello, everyone. Recently, I have shown my interest in concurrent programming (I can't help it. Others will. You can't say it). Then I will work hard to learn concurrent programming well. Next, let's enter the study together. Today, let's learn about the atomicity of thread safety We've been talking about thread safety, thread safety, so wha ...

Added by Johan Beijar on Sun, 16 Jan 2022 15:16:17 +0200