JVM memory structure

JVM introduction 1. What is a JVM? java virtual machine - the running environment of java programs (java Binary Bytecode operating environment) 2. Benefits of JVM The cornerstone of writing once and running everywhere [key]Automatic memory management, garbage collection function [key]Data subscript out of range checkPolymorphism, object-ori ...

Posted by mike0193 on Fri, 12 Aug 2022 21:44:05 +0300

Mysql data backup and recovery

foreword After reading this article, delete the library and run away! ? It can never happen again! Be sure to develop the habit of risky operation of backup data to avoid wasting time in restoring data. Contents of this article: The role of binlog mysqldump and mysqlbinlog do data backup and data recovery. XtraBackup full backup and increment ...

Posted by Revan on Thu, 11 Aug 2022 21:16:22 +0300

Refactoring: reorganizing functions

1, Put a piece of code into a separate function 1.1 code example 1.2 application scenarios When there is an overly long function or a piece of code that needs comments to make people understand its purpose, put this code into a separate function. 1.3 benefits First, there is a greater chance that functions can be reused with each ...

Posted by TheIceman5 on Wed, 10 Aug 2022 21:29:37 +0300

Java object orientation: the ultimate training of interfaces

Problem description There are four roles as follows. The attributes and behaviors of these roles are Stock investors: name, age, study stock speculation, speak English Fund Investor: name, age, study and speculation Stock Manager: name, age, teaching stock trading, speaking English Fund manager: name, age, teaching and speculation base Pl ...

Posted by ballhogjoni on Tue, 09 Aug 2022 21:47:12 +0300

Encapsulation, inheritance and polymorphism of java

encapsulation Characteristics of encapsulation: data can only be accessed through specified methods.Hide the instance details of the class to facilitate modification and implementation.Specific practical steps of packaging Modify the visibility of attributes to restrict access to attributes, which is generally set to private.Create a pa ...

Posted by zz50 on Tue, 09 Aug 2022 21:33:18 +0300

Javac compilation custom annotation and analysis annotation implementation of Lombok

1, Ask questions with Lombok 1.1 INTRODUCTION 1. Open settings (shortcut key: ctrl+alt+s) in idea, search plugin, search lombok in plugins, and install 2. Introduce lombok dependencies into the project <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version&gt ...

Posted by jf3000 on Tue, 09 Aug 2022 11:59:23 +0300

2022/07/29 jisoft Java Foundation (14) exception handling

1, What is exception handling Exception handling is also called exception handling. There are two purposes to deal with exceptions in the program, one is to find the exceptions in the program, and the other is to operate the exceptions relatively or notify the programmer to modify them. Using the try catch statement can accomplish these two pur ...

Posted by bothwell on Sat, 06 Aug 2022 21:26:11 +0300

[algorithm collection] the second day of learning algorithms (dichotomy and sorting)

✅🎡 Personal homepage: Program ape chase ✅🎡 Series column: Algorithm set ✅🎡 Current status: create Java learning road (zero foundation to employment practice) series, which is currently updated to JAVAWEB development ✅🎡 About the author: Hello, everyone. I'm a program ape chaser, a new star creator in the whole stack field, an ...

Posted by grandman on Wed, 03 Aug 2022 22:19:23 +0300

Vue.js framework handle tutorial

Vue 1, Introduction Vue.js (read /vju ː/, Similar to view), it is a set of progressive framework for building "user interface". Vue only focuses on layers and adopts the design of bottom-up incremental development. Vue is a view component that implements data binding and composition of responses through the simplest possible A ...

Posted by MikeL on Wed, 03 Aug 2022 22:14:25 +0300

NIO Selector execution process

1, What is Seletor? The literal meaning of selector is not easy to understand. Seletor is a listener that can listen to events in the Channel. Channels can be registered in the seletor. When these registered channels have events, the seletor's select method will return these events to the thread for processing. 2, The difference bet ...

Posted by Fari on Tue, 02 Aug 2022 21:10:27 +0300