Test test

Day 03 java Basics Today's content introduction  circulation structure  circular nesting  control loop statement  Random number Chapter 1 circulation structure 1.1 format and basic use of for loop 1.1.1 for loop statement format: For (initialization statement; judgment condition statement; control condition statement){ Loop body statement; ...

Added by Desdinova on Tue, 25 Jan 2022 05:56:18 +0200

Java ASM framework learning - building class bytecode from zero

Tips: ASM uses visitor mode. Learn visitor mode and look at ASM more clearly What is ASM ASM is a class library that operates on Java bytecode Before learning this class library, I hope you have a certain understanding of Java basic IO and bytecode. A higher version of ASM library can operate on the byte code of the highest JAVA version and ...

Added by jsschmitt on Tue, 25 Jan 2022 03:44:38 +0200

Simple implementation of Sanzi chess with C language

I How to design First of all, we can use functions to divide the implementation of Sanzi chess into different modules. We can think about it. For a game, there must first be a directory for players to choose whether to play or not, that is, the menu interface; Secondly, we have to have a chessboard. The next step is for the player to fall, and ...

Added by smixcer on Tue, 25 Jan 2022 03:11:28 +0200

Application of java basic statements

do... while statement Basic format: do { Loop body statement; }While (conditional judgment statement); Full format: Initialization statement; do { Loop body statement; Conditional control statement; }While (conditional judgment statement); Execution process: 1: Execute initialization statement 2: Execute loop body statement 3: Execute condi ...

Added by RSprinkel on Tue, 25 Jan 2022 02:21:43 +0200

Chapter 5 inheritance of notes of Java core technology Volume 1

5.1.3 dynamic binding (1) The compiler views the method name. (2) The compiler looks at the method type. (3) Find a more appropriate way. Contains methods and parameters. Methods closer to the current position, such as f(int) and f(double). If the parameters are int, int will be automatically selected; Both the subclass ...

Added by quicknb on Mon, 24 Jan 2022 23:20:45 +0200

Summary of Java multithreading Basics

1 concurrency and parallelism Parallelism: multiple instructions are executed simultaneously on multiple CPUs at the same time. Concurrency: at the same time, multiple instructions are executed alternately on a single cpu. 2 process and thread Process: a running program. Independence: a process is not only a basic unit that can run indepen ...

Added by perezf on Mon, 24 Jan 2022 23:01:17 +0200

Understand the use of completable future

preface There are only two ways to create a Thread: inherit the Thread or implement the Runnable interface. However, both methods have a defect that they do not return a value After Java 1.5, you can obtain a Future object containing the return value by submitting a Callable to the thread pool Limitations of Future interface When the Future ...

Added by morphy@6deex on Mon, 24 Jan 2022 21:53:29 +0200

Prepare for 2022 spring move - java-day7

java X parameters of JVM (understand) -Xint: Interpretation and execution-Xcomp: compile into local code the first time you use it-Xmixed: mixed mode XX parameter Note: check whether the parameter is used and check the parameter details: jinfo -flag parameter name process number Example: jinfo -flag MetaspaceSize 4488 (view the MetaspaceSi ...

Added by burgessm on Mon, 24 Jan 2022 21:00:49 +0200

Analysis of LongAdder source code of Java8 atomic bomb

Analysis of LongAdder source code of Java8 atomic bomb Starting from JDK 8, Java provides longadder for Long atomic operations LongAccumulator; For Double type, Java provides Double adder and Double accumulator. Striped64 UML AtomicLong is internally a volatile long variable, which is operated by multiple threads. Multiple threads perform ...

Added by maxf on Mon, 24 Jan 2022 18:42:55 +0200

Java file basic operation

1, Introduction   java. io. The file class is an abstract representation of file and directory pathnames. File is a basic class of Java in the whole file IO system. It can perform operations on files, folders and paths, such as creating files or folders, obtaining paths and details, judging whether files exist, deleting, renaming ...

Added by nitestryker on Mon, 24 Jan 2022 18:29:44 +0200