28 | heap and heap sorting: why is heap sorting not as fast as fast sorting?

How to understand "heap" Heap sorting is an in-situ sorting algorithm with time complexity of O(nlogn) There are two characteristics of the heap: A complete binary treeEach node in the heap must be greater than or equal to (or less than or equal to) the value of its left and right child nodes; The heap whose value of each node is g ...

Added by Cogen on Thu, 17 Feb 2022 12:41:55 +0200

[Java] IO flow foundation

๐Ÿ : Blog home page: Incoming bogey ๐Ÿ“•: Today's article: [Java] IO stream Foundation ๐Ÿ’: I hope my interpretation of the source code can help you ๐ŸŽˆ ๐ŸŒฑ: Boji is still trying to learn JavaSE. If you have any questions or omissions, please give me more advice ๐Ÿ™ โ˜€๏ธ: On the way of self-study and growth, thank you for your company! No hurry ๏ผŒ ...

Added by phuggett on Thu, 17 Feb 2022 12:20:28 +0200

JAVA foundation 06 - interface and polymorphism

1, Interface 1.1 what is the interface First of all, explain the rookie tutorial, which is very professional Interface (English: Interface), an abstract type in JAVA programming language, is a collection of abstract methods. Interfaces are usually declared as interfaces. A class inherits the abstract methods of the interface by inheritin ...

Added by Abarak on Thu, 17 Feb 2022 11:30:10 +0200

18 details of Spring transaction propagation mechanism

What is the transaction propagation mechanism The propagation mechanism of transactions, as the name suggests, is how to propagate transactions between multiple transaction methods. For example, method A is A transactional method. Method B is called when method A executes. Whether method B has A transaction or not and whether it needs A tr ...

Added by rajan on Thu, 17 Feb 2022 11:16:16 +0200

Application of double buffer mechanism in some software or framework

As we all know, the JVM's garbage removal algorithm is a copy removal algorithm used in the young generation, which is why the young generation is divided into two memory spaces of the same size: S0 and S1. When S0 is full, copy it to S1, and then empty S0. Of course, GC will tidy up the memory and make it continuous. What other common software ...

Added by njwan on Thu, 17 Feb 2022 10:35:21 +0200

Spring 5 source code reading 2spring container startup

The start of the container is mainly to create the container, initialize the container, read the spring configuration file, generate the BeanDefinition, and create the bean instance through reflection according to the BeanDefinition. 1 webApp start loading The webApp startup process is mainly to load web xml web. The loading of XML will l ...

Added by ronniebrown on Thu, 17 Feb 2022 10:27:56 +0200

There are already Optional use cases in Nacos, so it's time to be careful with this syntax

preface Java 8 provides many new features, but many friends don't pay attention to it and still use the old writing method. Recently, I read a lot of the source code of the open source framework and found that many API s of Java 8 have been used frequently. Taking the Nacos framework as an example, there are already typical Optional use cases ...

Added by rodin on Thu, 17 Feb 2022 10:16:22 +0200

Springboot integration Swagger3 detailed operation steps

catalogue 1. add dependency 2. Add the configuration file resources \ config \ swagger properties 3. Write Swagger3Config configuration class 4. Write the Ctronller class 5. Start access address: 6. Swagger3 common notes 1. Add dependency <!-- introduce swagger3 package --> <dependency> <groupId>io.springfox< ...

Added by chrispbrown on Thu, 17 Feb 2022 10:00:51 +0200

This article teaches you to easily master the basic use of Apache POI

1, Introduction to Apache POI Excel processing is often designed in development, such as exporting excel and importing excel into the database. A few years ago, there were two frameworks commonly used to operate excel, one is apache poi and the other is Java Excel. However, now there are EasyPoi and Alibaba open source EasyExcel, which wil ...

Added by Ark3typ3 on Thu, 17 Feb 2022 09:29:56 +0200

Hyperledger Fabric 2.x custom smart contract

1, Explain In order to continuously update information and manage the ledger (write transactions, query, etc.), the blockchain network has introduced smart contracts to access and control the ledger; Smart contract is called chain code in Fabric, which is the business logic of blockchain application. This article shares how to use the Java ...

Added by Jeb. on Thu, 17 Feb 2022 08:50:48 +0200