#Java

Java memory model

<h1 id="java-memory-model">java memory model</h1> <p><strong>Java memory model (Java Memory Model (JMM) is a specification that meets the memory model, blocking the differences between the visits of

Java class loading mechanism

<h3 id="java-class-loading-mechanism">java class loading mechanism</h3> <p><strong>Class loading mechanism</strong></p> <p>The so -called class loading mechanism is that the JVM virtual machine loads

Five ways to create objects in Java

<h3 id="five-ways-to-create-objects-in-java">Five ways to create objects in Java</h3> <p>This article will introduce five ways to create a Java object:</p> <ul> <li>use the new keyword</li> <li>use

Java basic sleep and interrupt

<h3 id="java-basic-sleep-and-interrupt">Java basic sleep and interrupt</h3> <ol> <li> <p>interrupt is used to send a termination notification signal to the thread, which will affect the interrupt flag