Java basics IO flow

catalogue 1, IO stream 1. Classification of IO streams: 2. Byte input stream Construction method of FileInputStream 3. Byte buffer stream Encryption and decoding: 4. Character stream Classification of character stream Character output stream Construction method of OutputStreamWriter Method for OutputStreamWriter to write data The di ...

Added by adroit on Sun, 20 Feb 2022 05:26:25 +0200

Java uses thread factory to monitor thread pool

ThreadFactory Where do the threads in the thread pool come from? It's threadvector public interface ThreadFactory { Thread newThread(Runnable r); } There is an interface in Threadfactory. This method will be called when a thread needs to be created in the thread pool. You can also customize the thread factory public class Threadfac ...

Added by DamianTV on Sun, 20 Feb 2022 05:20:09 +0200

2022Java learning notes 33 (object-oriented enhancement: inheritance, @ Override rewrite annotation)

2022Java learning notes 33 (object-oriented enhancement: inheritance, @ Override rewrite annotation) 1, What is inheritance 1. Inheritance is a relationship between classes 2. Multiple classes inherit a single class, and multiple classes can use the properties and behaviors of a single class 3. Multiple classes are called subclasses (derived c ...

Added by beachdaze on Sun, 20 Feb 2022 04:37:26 +0200

Java interview stereotyped Dictionary - Basic chapter

Basic chapter Key points of basic part: algorithm, data structure and basic design mode 1. Binary search requirement Be able to describe the binary search algorithm in your own languageAble to write binary search codeBe able to answer some changed test methods Algorithm description Premise: there is A sorted array A (assuming it is ...

Added by gausie on Sun, 20 Feb 2022 04:24:31 +0200

Java multithreading detailed explanation, an article to understand multithreading.

1. Basic concepts program A program is a set of instructions written in a certain language to complete a specific task. That is, a piece of static code (not yet running), static object. process Process is an execution process of a program, that is, the program runs, loads into memory, and occupies cpu resources. This is a dynamic process ...

Added by Nilpez on Sun, 20 Feb 2022 04:07:41 +0200

2022 wechat payment v3 - Native

Introduction to Native payment Reference documents: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_7_0.shtml Native payment refers to the mode in which the merchant system generates a payment QR code according to the wechat payment agreement, and the user uses wechat to "scan" to complete the payment. Application scenar ...

Added by Druid on Sun, 20 Feb 2022 04:06:14 +0200

Thread interrupt series API description

I. API public void interrupt() public static boolean interrupted() public boolean isInterrupted() II. Description of interrupt 1. Introduction The call of the following methods will make the current thread enter the blocking state, and the blocking can be interrupted by calling the interrupt method of the current thread Object ...

Added by doozerdc on Sun, 20 Feb 2022 03:32:56 +0200

Spring controls inversion and dependency injection

Controls the type of inversion Inversion of control (IOC) aims to provide a simpler mechanism to set the dependencies of components and manage them throughout the life cycle. Generally, control inversion can be divided into two subtypes: dependency injection (DI) and dependency lookup (DL). These subtypes can be further decomposed into the s ...

Added by figo2476 on Sun, 20 Feb 2022 02:19:55 +0200

Summary of Java Basics

I always think of beginners in my spare time java The basics of learning, However, it seems that yesterday's basic knowledge sometimes can't remember its principle and knowledge points. So review the summary notes again. Encourage each other!!! At the same time, find the feeling of learning!!! 1, Introduction to Java   Java is betwe ...

Added by zesoft.net on Sun, 20 Feb 2022 02:11:48 +0200

[Spring Security] how to store user data into the database?

How does Spring Security store user data into the database? Up to now, we haven't connected to the database. In real projects, in most cases, we design our own permission database. However, Spring Security also provides us with a permission database designed by itself. Let's see what's going on first! Let's learn this simple one first, and the ...

Added by shocker-z on Sun, 20 Feb 2022 02:07:09 +0200