Java ArrayList collection quick start

1. Assemble A collection is a container similar to an array, but its storage capacity is variable. Array features: After the array definition is completed, the type is determined and the length is fixed.It is suitable for the scenario of determining the number and type of data.Existing problems: when the number is uncertain and th ...

Posted by pernest on Fri, 28 Jan 2022 20:32:16 +0100

java memory mechanism of JVM

Java memory structure 1. Program Counter Register Function: remember the execution address of the next jvm instruction For example, when executing instruction 0, the program counter will remember 3. When the execution of 0 is completed, the interpreter will take the instruction of 3 from the program counter, and so on. The instruction is i ...

Posted by jmcall10 on Fri, 28 Jan 2022 19:32:20 +0100

Netty learning notes netty source code - start the process

preface The notes are based on black horse's Netty teaching handout and some of my own understanding. I feel that this is a very good video I've seen. There's basically no nonsense. Video address: Black horse Netty . From here on, we try to look at the source code to understand the underlying operating mechanism of Netty. 1. nio star ...

Posted by firemankurt on Fri, 28 Jan 2022 18:52:41 +0100

BigDecimal solves the problem of precision loss of floating point operation

Alibaba Java development manual mentioned that "in order to avoid precision loss, BigDecimal can be used for floating-point operation". In this article, I will briefly explain the reasons for the loss of precision in floating-point operation and the common usage of BigDecimal. I hope it will be helpful to you! BigDecimal introductio ...

Posted by stig1 on Fri, 28 Jan 2022 16:04:18 +0100

go language learning record 3

catalogue go language pointer Address: Define pointer: Use pointer: Null pointer: go language structure Define structure Access structure members Structure as function parameter Structure pointer go language recursive function Factorial: Fibonacci sequence: go language type conversion go language interface Relationship between ...

Posted by JimStrosky on Fri, 28 Jan 2022 13:44:06 +0100

Systematically learn about C + + standard multithreading - thread management

catalogue catalogue Basic thread management Start thread Wait for the thread to complete Running threads in the background Pass parameters to thread function Pass a parameter Value transmission Pass reference Pass pointer Pass multiple parameters Transfer ownership of threads Select the number of threads at run time result Iden ...

Posted by Negligence on Fri, 28 Jan 2022 13:04:38 +0100

Spring (IOC, hellosppring, dependency injection, automatic assembly of bean s, annotation, spring integration, Mybatis, declarative transaction...)

1 Spring 1.1 INTRODUCTION SpringSSH: Strust2 + Spring + HibernateSSM: SpringMvc + Spring + Mybatis Official website: https://docs.spring.io/spring-framework/docs/current/reference/html/overview.html#overview GitHub: https://github.com/spring-projects/spring-framework/releases <!-- https://mvnrepository.com/artifact/org.springframework/ ...

Posted by benny_g on Fri, 28 Jan 2022 11:21:23 +0100

Java learning - control statement

Control statement: combine the statements into small logic modules that can complete certain functions. Divided into 1 Sequential statement 2 Select statement 3 Loop statement. In fact, any software and program, from an exercise to an operating system, is essentially composed of "selection statements and circular statements". In cpp, ...

Posted by curby on Fri, 28 Jan 2022 09:02:22 +0100

Net exposure: multithreading series of "squatting in a pit can enter a big factory" - fine talk of ThreadLocal (Basic + source code)

preface Recently, many friends have always asked me privately, what is ThreadLocal So today we'll focus on ThreadLocal. If you think it's good after reading it, don't forget to praise it! text ThreadLocal is mainly used to provide thread local variables, that is, this variable is only visible to the current thread. ThreadLocal maintains a ...

Posted by anakadote on Fri, 28 Jan 2022 09:02:09 +0100

Python Basics_ 6_ file

python foundation 6: files 1, File operation 1. [know] the role of documents The role of files: persistent storage of data 2. [key] basic operation of documents Document operation process Open a file or create a new oneRead / write dataClose file Open file: file variable = open("file name", "access mode")Closing ...

Posted by stormx on Fri, 28 Jan 2022 02:38:01 +0100