[JVM] StringTable - string constant pool

1. StringTable StringTable location of different JDK versions 1.1 basic characteristics of string String string, represented by a pair of "".The String class is declared as final and cannot be inheritedString: implements the Serializable interface: indicates that the string supports serialization, and implements the Comparable int ...

Added by prometheos on Mon, 31 Jan 2022 00:12:14 +0200

Virtual machine class loading mechanism - class loader

The Java virtual machine design team intends to implement the action of "obtaining the binary byte stream describing a class through the fully qualified name of a class" in the class loading stage outside the Java virtual machine, so that the application can decide how to obtain the required class by itself. The code that implements t ...

Added by clicket on Sun, 30 Jan 2022 22:13:53 +0200

Deeply understand the reflection mechanism and use principle in Java! Analyze the execution and use of invoke method in detail

The concept of reflection Reflection: reflection is one of the characteristics of Java. It allows running Java programs to obtain their own information and manipulate the internal properties of classes or objects Through reflection, you can get the information of the program or each type of member in the program living into a member at run ...

Added by alkhatareykha on Fri, 28 Jan 2022 17:00:20 +0200

jvm exception generation file hs_err_pid[pid].log

JVM fatal error log (hs_err_pid.log) analysis CrashAnalysis Function introduction This is a jvm crash analysis tool, which mainly analyzes the causes of jvm crash and common solutions. Mode of use java -jar CrashAnalysis-1.0-SNAPSHOT.jar ${hs_err_pid.log} ${hs_err_pid.log} is the log generated after the jvm crash. effect After the analys ...

Added by myfafa on Tue, 25 Jan 2022 05:33:00 +0200

Rumor shredder: using try catch in JAVA will affect performance

preface: I don't know when it came out that using try catch in Java will seriously affect performance. However, is this really the case? Should we be afraid of try catch like tigers? 1, JVM exception handling logic Explicit exception throwing in Java programs is supported by the arrow instruction. In addition to actively throwing excep ...

Added by visionmaster on Mon, 24 Jan 2022 04:28:21 +0200

Interview must see - Java class loader (custom class loader)

1, Role of class loader Java code cannot be run directly. It needs to be compiled into binary bytecode files recognized by the JVM through the compiler, and the function of class loader is to convert these binary bytecode files, namely The class file is loaded into the virtual machine so that the virtual machine can run the program. 2, Ja ...

Added by stevenszabo on Sun, 23 Jan 2022 15:28:43 +0200

[exploration of JVM principle] analysis of calling and execution process of bytecode instruction set (syntax analysis)

Article introduction This article explains how java code is compiled into bytecode and executed on the Java virtual machine. It is very important to understand how java code is not compiled into bytecode and executed in the Java virtual machine, because it can help you understand what happens to your program at run time.This understanding can ...

Added by pbeerman on Sun, 23 Jan 2022 09:26:13 +0200

The running of java method and virtual machine stack

Virtual machine stack is the data, instruction and return address required by threads to run java methods. In fact, in our actual code, a thread can run multiple methods. package sandwich; /** * @author Official account: IT sandwich * @date 2021/3/7 */ public class MethodAndStack { public static void main(String[] args) { A(); ...

Added by shseraj on Fri, 21 Jan 2022 01:06:42 +0200

Is heap the only option for allocating objects?

I. escape analysis In the in-depth understanding of Java virtual machine, there is a paragraph about Java heap memory: With the development of JIT compiler and the maturity of escape analysis technology, stack allocation and scalar replacement optimization technology will lead to some subtle changes, and all objects are allocated to the heap, ...

Added by imderek on Wed, 19 Jan 2022 22:34:03 +0200

Strong reference, soft reference, weak reference, virtual reference

https://blog.csdn.net/qq_39192827/article/details/85611873 We want some objects to remain in memory when there is enough memory; If there is not enough memory, these objects can be discarded, and four reference types are proposed. There are two main purposes of providing these four reference types in Java: first, it allows programmers to determ ...

Added by bailo81 on Wed, 19 Jan 2022 13:24:12 +0200