JVM drill down - drill down on java references

1. Reference in Java Reference is the bridge between heap and stack in java. If you want to access objects in the heap, you must access them through reference (except for 8 basic data types) In garbage collection, if an object is still referenced by GcRoots, it will not be recycled (strong reference). This is not absolute. It is mainly determi ...

Added by Aurasia on Sat, 15 Jan 2022 20:45:57 +0200

Date event class & exception

1. Time and date 1.1 Date class Time origin in computer January 1, 1970 00:00:00 Time conversion unit 1 second = 1000 milliseconds Overview of Date class Date represents a specific time, accurate to milliseconds Date class constructor Method nameexplainpublic Date()Allocate a Date object and initialize it so that it represents the time ...

Added by tdors on Sat, 15 Jan 2022 18:23:57 +0200

Java starts child processes and communication between parent and child processes

Description of how to start the process Through new processbuilder (string... Commands) Start() starts the process ProcessBuilder supports chain programming to configure the related settings of child processes redirectXXX: redirect the stream of subprocesses (standard input, standard output, error message)environment() gets the environ ...

Added by nolos on Sat, 15 Jan 2022 16:35:19 +0200

Spring event mechanism

concept In a complete event system, there are the following roles Event: describe what happened, such as request processing completed and Spring container refresh completedEvent source: the generator of an event. Any event must have an event source. For example, the event source of request processing is DispatcherServlet, and the event sour ...

Added by kenshintomoe225 on Sat, 15 Jan 2022 16:30:33 +0200

java uses spire Remove the watermark from the word file generated by Doc (warning information in the header)

1. Demand Dynamically generate word documents through word templates and data in database tables. The word operation tool itself carries word to xml (save as xml directly). However, the requirements are clear. Only word templates can be used, and users are not allowed to manually transfer from word to xml and then upload. Freemark is ...

Added by ryan-uk on Sat, 15 Jan 2022 15:22:31 +0200

A solution to double linked list (0 basic view) (C language) data structure and algorithm

catalogue preface Lead two-way circular linked list 1. Concept 2. Effect display diagram 3. Interface implementation 3.01. The interface to be implemented in this article โ€‹3.02. Implementation of double linked list 3.03. Initialization of double linked list 3.04. Print linked list 3.05. Dynamically apply for a node 3.06. Head ins ...

Added by tbaink2000 on Sat, 15 Jan 2022 12:29:43 +0200

Let's learn about the MySQL explain implementation plan. Day 4 of MySQL Optimization Learning

Optimization of a query You should encounter this scenario. A self incrementing primary key is set in MySQL, but some data is subsequently deleted, resulting in discontinuous primary keys. You can use the following command to query those discontinuous primary keys. -- Writing method 1 select id from (select id from Table name order by id asc ...

Added by visitor on Sat, 15 Jan 2022 04:06:21 +0200

It's time to test the real technology! After reading, I will teach you to really understand Java annotation and reflection!

Annotation and reflection java.Annotation 1. What is annotation Annotation is from jdk5 New technologies introduced from 0Function of Annotation: It is not the procedure itself, which can be explained. (this is no different from comment s.)It can be read by other programs (such as compiler, etc.). Format of Annotation: Annotations ...

Added by automatix on Sat, 15 Jan 2022 03:51:24 +0200

[appendix 2Java object-oriented programming] detailed explanation of inventory keywords this, super and final

โค Write in front โค Blog home page: Hard working Naruto โค Series column: Java basic learning ๐Ÿ˜‹ โค Welcome, friends, praise ๐Ÿ‘ follow ๐Ÿ”Ž Collection ๐Ÿ” Learning together! โค If there are mistakes, please correct them! ๐ŸŒน ๐Ÿ”ฅ Series portal: [chapter 04 Java object-oriented programming (Part 2)] the killer technology of object-oriented programming ...

Added by thirteen13 on Sat, 15 Jan 2022 02:21:44 +0200

The fourth day of c + + Learning

1. Code area It has two characteristics: 1 is sharing, that is, we click on many of the same files, but only execute that piece of code and will not generate another piece of code. 2 is readable, that is, the code is only readable, but cannot be written, otherwise the data will be modified and the game gold coin will be changed 2. Global ...

Added by Jalz on Sat, 15 Jan 2022 01:45:50 +0200