Basic knowledge of JavaSE 3: data types and operators
1, Data type 1. Basic data type meaning: The data of the corresponding type is assigned to the variable of the corresponding type Automatic type lifting: Small ----- > Large It can be stored normally, but it may cause a waste of memory Cast type: Large ----- > small Can not occur, which may cause loss of accuracy Small range type variable ...
Posted by mihomes on Thu, 03 Mar 2022 15:36:38 +0100
How to implement distributed locks with Redis?
brief introduction
I believe that the biggest motivation for many people to learn distributed locks is not their own system needs, but the needs of interviewers... Of course, this also shows that the distribution lock is very important. It is often used as an examination question. Before learning, we need to clarify several questions.
...
Posted by Virii on Thu, 03 Mar 2022 13:15:01 +0100
Mybatis personal study notes
Mybatis personal summary notes
01 basic information
Mybatis is the SQL mapping frameworkThis object can be mapped into a row of data in the databaseDevelopers only need to provide sql, process sql through Mybatis, and finally get the List collection or Java objectsMybatis is a semi-automatic ORM mapping tool, which is called semi-automa ...
Posted by simongcc on Thu, 03 Mar 2022 12:38:29 +0100
JVM tuning tool kit: comparison between JDK built-in tools and Arthas online analysis tools
Arthas online analysis, diagnosis and tuning tool
In the past, when we wanted to troubleshoot online problems, we usually used the tuning tools and commands provided by jdk. The most common is the dump online log, which is then downloaded locally and imported into the jvisual VM tool. There are many changes in this operation. The Arhtas tool d ...
Posted by oh_maestro on Thu, 03 Mar 2022 11:58:39 +0100
Introduction to Python Basics: a tutorial on reading and writing JSON files
Introduction to JSON
JSON(JavaScript Object Notation), namely JavaScript object notation, is a lightweight and general text data format. JSON syntax supports objects, arrays, strings, numbers (int/float), and true/false and null. JSON has a strict format. The main formats are as follows:
You can only use double quotation marks, not single quo ...
Posted by Chappers on Thu, 03 Mar 2022 09:37:32 +0100
A weird FGC. I've been looking for the reason for a long time
While the code is rolling, a message pops up in the company's chat tool:
"Brother wolf, my machine always FGC frequently..."
I quickly opened the dialog box and replied with a witty expression
Then continue silently.
Then, the little partner smashed a GC log
2019-09-17T20:33:57.889+0800: 4753520.554: [Full GC (Metadata GC Th ...
Posted by harshilshah on Thu, 03 Mar 2022 06:59:15 +0100
python/numpy - find the maximum value, minimum value and index for maximum and minimum value - Max, NP max,np.amax,np.nanmax,np.fmax,np.maximum
Introduction
This article is based on PY3 8,system win10,numpy1.12.
np is the abbreviation of numpy.
1, Summary of reference sources and basic knowledge
Performance comparison between python built-in max() and min() functions and Numpy built-in max() and min() functions
Based on python 2.7.15 and system win10, the above article draws ...
Posted by elacdude on Thu, 03 Mar 2022 06:19:12 +0100
[high frequency interview questions from large factories] explain in detail the implementation of LRU cache (the least used cache recently) - C + + version
1 what is LRU cache
LRU (Least Recently Used) algorithm is an elimination strategy. In short, the implementation is as follows: put some elements into a container with fixed capacity for access. Due to the limited capacity of the container, the container should ensure that the elements that have been used recently are always in the contain ...
Posted by lpxxfaintxx on Thu, 03 Mar 2022 04:51:19 +0100
Spring IOC circular dependency summary
catalogue
Spring circular dependency
What is circular dependency?
Under what circumstances can circular dependencies be handled?
Basic introduction and the essence of circular dependency
what? The essence of the problem is actually two sum!
How to get to getSingleton method
Simple circular dependency (no AOP)
Call getSingleton(beanName ...
Posted by jimmyt1988 on Wed, 02 Mar 2022 16:25:13 +0100
4 Java Foundation__ operator
Operator classification:
Arithmetic operator:
① Except (/):
class AriTest
{
public static void main(String[] args)
{
int num1=12;
int num2=5;
int result1=num1/num2;
double result2=num1/num2;
double result3=num1/num2+0.0;
double result4=num1/(num2+0.0);
double result5=(double)num1/num2;
System.out.println(result1); //2
...
Posted by stemp on Wed, 02 Mar 2022 10:05:18 +0100