Interviewer: what is Java reflection?

I concept II common method III Typical examples IV Method class V Reflection of array Vi Conclusion I concept Reflection is to map various components of Java into corresponding Java classes. The construction method of Class is private, which is created by the JVM. Reflection is a feature of the Java language, which allows programs to ...

Added by chalbing on Wed, 26 Jan 2022 20:44:02 +0200

pipenv learning record

3 advanced usage 3.1 creating virtual environment based on Pipfile pipenv install Practical examples are as follows: Here, delete the current virtual environment first, and then recreate the virtual environment. You can see that the recreated environment is the same as that before deletion. Not only the virtual environment is recreated ...

Added by kaizix on Wed, 26 Jan 2022 18:34:36 +0200

17 C++11 common syntax

1, Introduction to C++11 In 2003, the C + + Standard Committee submitted a Technical Corrigendum (TC1) so that the name of C++03 has replaced the name of C++98 as the latest C + + standard before C++11. However, TC1 mainly fixes the loopholes in the C++98 Standard, and the core part of the language has not been changed. Therefore, peo ...

Added by sir nitr0z on Wed, 26 Jan 2022 18:28:26 +0200

[Java] takes you from zero to a series of 18 exceptions

Foreword: in addition to learning so much basic knowledge of Java, there is one thing we can't avoid when typing code, that is exception. So in this article, let's learn about exceptions to see what exceptions are in Java, what they are used for, and where they come from. Each picture: I Abnormal background 1. Initial knowledge ab ...

Added by pedrolopes10 on Wed, 26 Jan 2022 10:54:35 +0200

java read / write lock ReentrantReadWriteLock

summary When we introduced AQS, they were basically exclusive locks (mutual exclusion locks). These locks only allowed one thread to access at the same time, while read-write locks allowed multiple threads to access at the same time. When the read operation is much higher than the write operation, the read-write lock is used to make the read- ...

Added by chowwiie on Wed, 26 Jan 2022 10:40:24 +0200

C language: array

Array: An array composed of several related data items of the same type, which are stored together in order; An array is actually a collection of ordered data of the same type. Array name: Use a unified name to identify this group of data. This name is the array name. Array elements: Each data item that constitutes an array is called an element ...

Added by owaring on Wed, 26 Jan 2022 08:40:12 +0200

RocketMQ4.9.1 source code analysis - (HA module) Master Slave Slave report and message processing

Then the last one RocketMQv4.9.1 source code analysis - HA Master-slave Master reading and writing processing After answering the questions related to Master, this article continues to look at the code around some questions related to Slave. For slave, we have the following doubts: How can slave obtain the routing information of the masterH ...

Added by john_bboy7 on Wed, 26 Jan 2022 07:44:04 +0200

Even some people think that Redis is only as simple as get set?!

Five data types and application scenarios of Redis Redis has five data types, namely, string,list,hash,set,zset(sort set). I think this point should be clear to all partners who have a little knowledge of redis. Next, let's discuss the application scenarios of these five data types. [get notes] string This type is believed to be the most fam ...

Added by kansaschuck on Wed, 26 Jan 2022 07:20:04 +0200

JAVA learning notes 2 array

Array An array is an ordered collection of data of the same typeThe array length is fixedArray can be any data type, including basic type and reference typeThe array object itself is in the heapThe subscript of the array starts from 0Array subscripts must be used within the specified range, otherwise an error is reported (subscript out of boun ...

Added by trehy2006 on Wed, 26 Jan 2022 06:37:34 +0200

CAS operation and underlying implementation of JUC concurrent programming

concept The full name of CAS is Compare And Swap, which means compare and exchange. It is the atomic operation of CPUCAS is an abstract idea, not a concrete implementationCAS operation has three parameters: memory address of the value to be modified, expected value and new valueThe main idea is to judge whether the value of a location in memor ...

Added by crash58 on Wed, 26 Jan 2022 06:06:35 +0200