JVM -- garbage collection
2, Garbage recycling
How to judge whether an object can be recycled Garbage collection algorithm Generational waste recycling Garbage collector Garbage collection tuning
1. How to judge whether an object can be recycled
1.1 reference counting method
Disadvantages:
1.2 reachability analysis algorithm
The garbage collector in Java v ...
Added by karthikeyan_coder on Sun, 27 Feb 2022 08:55:45 +0200
day12_ Interface and polymorphism
Interface Overview
Interface is a reference type in the Java language and a "collection" of methods. Therefore, the interior of the interface is mainly to define methods, including constants, abstract methods (JDK 7 and before), default methods and static methods (JDK 8), and private methods (jdk9). There can be no other members in t ...
Added by vocoder on Sun, 27 Feb 2022 07:21:24 +0200
[C + +] object oriented encapsulation
2, Encapsulation (Part 2)
4.1 object arrays and object members
(1) Object array
Many times, we need not only one object, but a group of objects. For example, if there are 50 students in a class, we can use the object array. [object array code practice] Title: define a Coordinate class whose data members contain abscissa and ordinate. In ...
Added by martins on Sun, 27 Feb 2022 06:00:56 +0200
Filter sensitive words using prefix tree
Filter sensitive words using prefix tree
Introduction to prefix tree
Prefix tree is also called word lookup tree, Trie tree , is a kind of tree structure , is a variant of hash tree. The typical application is to count, sort and save a large number of data character String (but not limited to string), so it is often used by search e ...
Added by quetz67 on Sun, 27 Feb 2022 05:37:12 +0200
C++ auto type derivation
reference
http://c.biancheng.net/view/6984.html
Syntax and rules of auto type derivation
In previous versions of C + +, the auto keyword was used to indicate the storage type of variables, which is opposite to the static keyword. Auto means that variables are stored automatically, which is also the default rule of the compiler, so it is the ...
Added by TheBeginner on Sun, 27 Feb 2022 02:35:08 +0200
Program environment and preprocessing
catalogue
Program translation environment and execution environment
Compilation and linking
Pretreatment
Program translation environment and execution environment
In any implementation of ANSI C, there are two different environments. Translation environment and execution environment.
Translation environment: in this environment, the ...
Added by Negligence on Sat, 26 Feb 2022 21:55:17 +0200
Dynamic memory management
Catalogue
Introduction to dynamic memory function
Common mistakes
Flexible array
Introduction to dynamic memory function
malloc: apply for a continuous space like memory
void* malloc(size_t size);
If the development is successful, return a pointer to the developed space.
If the development fails, a NULL is returned
The return t ...
Added by Goose87 on Sat, 26 Feb 2022 21:51:09 +0200
[C + +] detailed explanation of polymorphism
concept
Polymorphism, that is, multiple forms, that is, different objects will produce different states when they complete a certain behavior. For example, when buying tickets in the past, ordinary people bought tickets normally, students bought tickets at half price, and soldiers bought tickets first.
Definition and Implementation
Com ...
Added by xkaix on Sat, 26 Feb 2022 19:04:25 +0200
[Jeremy Wu] adventure Road, ordinary road (C + +) kkmd66
Description:
Night Fury is a very rare and most dangerous and intelligent dragon from "master of dragon training 2". It is very different from other dragons in shape. It is similar to bats. At the same time, it combines the size of cats and the sharp eyes of wild wolves, with black scales on its body. The volume is petite, the expres ...
Added by TGM on Sat, 26 Feb 2022 18:18:09 +0200
Class loader
Learning objectives
Through the analysis of source code level, understand the direct relationship between the three loaders and the understanding of parental delegation mechanism
Introduction to class loader
The design team of Java virtual machine intentionally put the binary byte stream describing a class obtained through the full class ...
Added by paulbrown83 on Sat, 26 Feb 2022 14:21:49 +0200