The key reflection mechanism of salary increase attracts the project manager's attention to you, and the salary increase is within reach!!!!

preface For example, I was asked by the interviewer a few days ago what is reflection??? And my answer is!!! Reflection is the key of dynamic language. Reflection allows programs to obtain the internal information of any class with the help of Reflection API during execution, and can directly operate the internal properties and methods of ...

Added by pelleas on Wed, 19 Jan 2022 03:38:15 +0200

Get to know JVM (take you to know JVM from different perspectives)

summary When it comes to the three letters of JVM, what first pops out of your mind? I generally analyze the following three kinds of people: The first one: I know the three letters of JVM separately. I don't know what it isSecond: isn't it a Java virtual machine that runs Java programsThe third kind: it is divided into heap memory, method ...

Added by TNIDBMNG on Wed, 19 Jan 2022 00:10:02 +0200

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

Loading and initialization like jvm

3, Class loading and initialization Interview questions: Describe the hierarchy of class loaders? Parental delegation Why parent delegation How is the Class file loaded into memory and executed [external link image transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the image and upload ...

Added by arbab on Sun, 09 Jan 2022 18:57:26 +0200

Thoroughly analyze the JVM class loading mechanism

This article is still based on the JDK8 version, with some changes from the JDK9 modularizer to the class loader. 0 javac compilation java code public class Math { public static final int initData = 666; public static User user = new User(); public int compute() { int a = 1; int b = 2; int c = (a + b) * 1 ...

Added by sobbayi on Sun, 09 Jan 2022 13:49:35 +0200

JVM lesson 1: introduction to JVM and class file format

Getting started with JVM Inclusion relationship of JDK, JRE and JVM JVM features Some people say that classLoader does not belong to the JVM, and the concept does not matterInterpretation and compilation mix Cross language platform The JVM is java independent Any language - compile or dynamically generate - > Class file - run in - &gt ...

Added by dud3r on Fri, 07 Jan 2022 05:18:40 +0200

JAVA multithreading foundation ---------- volatile variable

catalogue JAVA Memory Model (JMM) To gain insight into volatile variables, you must first understand the Java memory model. Therefore, before introducing volatile variables, let's briefly understand the Java memory model. Here, we compare the memory model of physical machine (shared memory multi-core system) with JMM, because there is ...

Added by awiedman on Thu, 06 Jan 2022 04:23:37 +0200

[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

[elegant code] 03 optional null pointer exception

[elegant code] 03 optional null pointer exception Welcome to b station official account / public number [hexagon warrior Xia Ning], a man who wants to fill all the indicators. The article has been published in github directory Included. The handsome and beautiful in front of the screen, if it helps you, please like it and add a collection, ...

Added by shantred on Mon, 03 Jan 2022 11:46:58 +0200

Deep analysis of a kind of loading mechanism

The whole process of class I loading and running Look at the program below package com.maltose.jvm; public class Math { public static final int initData = 666; public static User user = new User(); //A method corresponds to a stack frame memory area public int compute() { int a = 1; int b = 2; int c ...

Added by Mr_jmm on Mon, 03 Jan 2022 00:26:39 +0200