[JVM] runtime data area (runtime data area structure, thread, program counter, PC)

πŸ”° Learning video πŸ”° Shang Silicon Valley song Hongkang JVM complete tutorial (detailed explanation of java virtual machine) Number of episodes: 39-43 1, Foreword This section mainly talks about the runtime data area, that is, the part in the figure below, which is the stage after the class is loaded When we pass the previous steps: ...

Added by Bob_PHP_Builder on Tue, 04 Jan 2022 13:56:30 +0200

Django defines model classes

Define model classes Model classes are defined in the "application / models.py" file.The Model class must inherit from the Model class, located in the package Django db. In models 1 . definition Create the application booktest in models Py file. from django.db import models #Define book model class BookInfo class BookInfo(models ...

Added by Gho on Tue, 04 Jan 2022 13:41:13 +0200

Understand [logic control] it's enough to read this article

Sequential structure Execute line by line in the order in which the code is written Code slice System.out.pprintln("1"); System.out.pprintln("2"); System.out.pprintln("3"); Branching structure if statement Basic grammatical form 1 if (Boolean expression){ Statement block } Basic grammatical form 2 if (Boolean expression){ E ...

Added by Charlie9809 on Tue, 04 Jan 2022 13:36:17 +0200

Detailed explanation of the function and usage of static in Java

1.1 overview: Static is a static modifier. What is a static modifier? As we all know, any variable or code in the program is stored by the system automatically allocating memory during compilation, and the so-called static means that the memory allocated after compilation will always exist, and this space will not be released until the program ...

Added by libertyct on Tue, 04 Jan 2022 13:22:12 +0200

Java serialization and deserialization

Serialization and deserialization: Reference link SerialversionUID details: Reference link Differences between bytes and characters: Reference link In the past, serialization was implemented by some methods. Later, the business requirements need to be deeply copied before research. Read other people's blogs and draw some conclusions. Serializ ...

Added by exhaler on Tue, 04 Jan 2022 12:41:01 +0200

How to implement memory pool with 100 lines of C + + code

Memory pool is a kind of pooling technology. Through pooling, the number of resource object creation can be effectively reduced and the performance of program operation can be improved. Complex memory problems, how to sort out their own ideas 1, Memory pool introduction 1.1 basic concepts From the above figure, we can understand the genera ...

Added by misschristina95 on Tue, 04 Jan 2022 10:39:55 +0200

Principle, use and implementation of intelligent pointer in C + +

Principle, use and implementation of intelligent pointer in C + + Transferred from: https://www.cnblogs.com/wxquare/p/4759020.html 1 function of smart pointer Using heap memory in C + + programming is a very frequent operation. The application and release of heap memory are managed by programmers themselves. Programmers can improve the effic ...

Added by henryhund on Tue, 04 Jan 2022 10:31:20 +0200

When object-oriented, hello must love the world? [summary of the most popular Java foundation in history (6000 words)]

πŸ“’ Blog home page: πŸ€ Jiu Jiu uncle wineπŸ€ πŸ“’ Welcome to praise πŸ‘ Collection ⭐ Leaving a message. πŸ“ Welcome to discuss! πŸ‘ πŸ“’ This article was originally written by [Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu Jiu ...

Added by amrigo on Tue, 04 Jan 2022 10:27:41 +0200

golang, how to play with mock data?

At work, many companies require efficiency and automatic testing During the actual landing process, it is found that the current service may rely on the data and interfaces of other services for unit testing and automated testing In the process of single test or automation, the test may fail or block due to other service reasons or environmen ...

Added by klapy on Tue, 04 Jan 2022 10:01:59 +0200

Deep understanding of java thread pools

1. Why use thread pools? (Thread pool concept) 1. Thread pools are introduced to manage threads. The operating system needs to switch thread contexts frequently to affect performance. 2. Thread pools are actually pools of threads that help us reuse threads, avoid the overhead of creating a large number of threads, and improve response speed. ...

Added by robert.access on Tue, 04 Jan 2022 09:42:29 +0200