Recent Posts
-
[Java Concurrent Programming] sorting out knowledge points related to thread pool – New
Summary of common thread pools created by several executors FixedThreadPool The thread pool with a fixed number of thr…… -
Java: multithreading overview and creation method
Java: multithreading overview and creation method In the previous learning process, concurrency, thread and synchronou…… -
Java array drill down
Java array drill down Array in memory As mentioned earlier, array is a reference type, and array reference variable is…… -
[daily question] top k high frequency elements
347. Top k high frequency elements Given a non empty array of integers, return the elements with the highest frequency…… -
Abstract classes and methods in Java
Abstract classes and methods in Java abstract conception The key word of this article is abstraction, so what is abstr…… -
Have you mastered these collection operations of Java 8?
If you don't know about lambda, you can refer to my previous summary on lambda expression: lambda expression in Java 8…… -
[Java Concurrent Programming] ThreadLocal, which is often tested in the interview, learning the super detailed source code
What is ThreadLocal? For what? public class Thread implements Runnable { //线程内部局部变量 ThreadLocal.ThreadLoc…… -
Java concurrent reading notes: how to realize correct communication between threads
1、 Synchronized and volatile The synchronized keyword is a mutually exclusive built-in lock provided by Java. The loc…… -
Java concurrent reading notes: thread safety and mutually exclusive synchronization
This article refers to many famous books to form reading notes, which is convenient for deepening memory. Previous por…… -
Basic Java syntax (2)
1、 Strongly typed language 2、 Data type classification 1. Basic data type Integer type Memory space occupied by four…… -
Method rewriting of Java inheritance
In Java inheritance, a subclass can obtain all the structures of the parent class, and can also add properties and met…… -
Object oriented programming idea
Object oriented programming idea 1、 Difference between object-oriented and process oriented: Process oriented design:…… -
[in depth understanding of Java virtual machine] characteristics of four reference types
Strong reference The most common in Java is strong reference. Assigning an object to a reference variable is a strong …… -
Downward transformation of Java polymorphism
Downward transformation of Java polymorphism Upward transformation can be completed automatically, while downward tran…… -
[dark horse tourism network] project completion + unfinished function realization + personal summary + bug record
Source address: at the bottom of this article! 1、 Project configuration problem 1. [Maven project directory structure…… -
Xiaobai learns Java: internal classes
Xiaobai learns Java: internal classes An internal class is a form of encapsulation. It is a class defined in a class o…… -
Xiaobai learns Java: RandomAccessFile
Previous portal: Xiaobai learns Java: I / O flow Xiaobai learns Java: RandomAccessFile All the streams we learned befo…… -
Java process control (2) loop
while Loop int i = 0; while(i<10) { System.out.println(i); i++; } System.out.println("跳出循环!"); //输出…… -
Summary of common methods of stream API in Java 8
What is stream? Stream regards the set of elements to be processed as a stream. In the process of streaming, the strea…… -
[daily question] intersection of two arrays
349. Intersection of two arrays The difficulty is simple 227 Given two arrays, write a function to calculate their int…… -
Java object oriented constructor
Java object oriented constructor Use the constructor to ensure initialization Function: perform initialization when cr…… -
Xiaobai learns Java: strange randomaccess
Xiaobai learns Java: strange randomaccess When analyzing the source code of the three collections, we said that ArrayL…… -
Super keyword of Java
Super keyword of Java Don't say much, just go to the code: Super is used to restrict the object to call instance varia…… -
This of Java keyword
This of Java keyword concept This keyword can only be used inside a method to refer to the "object calling the method"…… -
Java object oriented interface (1)
Java object oriented interface (1) It's been a long time since the last article. I was busy reviewing near the end of …… -
[reprint] Introduction to JWT in Ruan Yifeng’s Weblog
JWT is the abbreviation of JSON web token. It is a JSON object that can be safely transmitted based on RFC 7519 standa…… -
Redis learning notes [interview questions]
Introduction to redis The redis database is different from the traditional database. The data of redis is stored in me…… -
Java class definition and class instantiation
Java class definition and class instantiation Class definition Direct code: package com.my.pac02; /** * @author Summe…… -
Java: several ways to control threads
Java: several ways to control threads There are many ways to control threads. This paper makes a summary. join() The o…… -
Object oriented inheritance in Java (1)
Java object oriented inheritance introduction The concept of inheritance also exists in our lives. Lao Liu is Lao Wang…… -
Encapsulation and access control of Java (2)
Encapsulation and access control of Java (2) Access control is the hiding of specific implementation and a part of enc…… -
Summary of various traversal and deletion methods of HashMap
preface Several ways of HashMap traversal 1、 Iterator traversal Iterative entryset @Test public void testEntr……