In depth understanding of ArrayList and LinkedList, source code analysis and performance testing

Spoiler: ArrayList's insertion and query operations are much faster than LinkedList ArrayList characteristic The bottom layer is realized by array, with fast query speed and slow addition, deletion and modification speed (in theory) Thread unsafe Common methods of ArrayList import java.util.ArrayList; import java.util.Iterator; import jav ...

Posted by cyrixware on Wed, 25 May 2022 15:49:26 +0300

"One stop" is compatible with the Spring Boot implementation of file storage for all cloud vendors

background Today, with the development of the Internet, almost all cloud manufacturers provide object storage services. A massive, safe, low-cost and highly reliable cloud storage service, which is suitable for storing any type of files. Flexible expansion of capacity and processing capacity, multiple storage types to choose from, and comprehen ...

Posted by Stagnate on Wed, 25 May 2022 14:06:05 +0300

Good Java skills (summary of 7 years of working experience)

Since graduation in 2013, this year has been my seventh year of work. I am always doing Java related work. Finally, I have time to sit down and write an article on Java writing to discuss. If you are really a java programmer, can you really write Java? This article is not a boastful article. It will not talk about many advanced architectures. O ...

Posted by Zeceer on Wed, 25 May 2022 12:03:47 +0300

Principle and implementation of thread pool

$1. General Background of thread pool: high concurrency projects often need to enable a large number of threads at the same time, so a large number of threads need to be created. Frequent creation of new threads and killing of old threads will greatly slow down the performance of CPU. Therefore, use the thread pool to initialize several threads ...

Posted by slibob on Wed, 25 May 2022 11:51:41 +0300

Graphical user interface: Swing component list

7, Check box Check boxes provide a way to make a single selection of "checked" or "unchecked". It contains a small box and a label. This box usually has an "x" mark (or other mark indicating "selected") or is empty, depending on whether the check box is selected. JCheckBox is usually created using a con ...

Posted by mdowling on Wed, 25 May 2022 10:54:33 +0300

Java Facade

1, Lead to the question of building a home theater: There are DVD player, projector, automatic screen, surround sound and popcorn machine in the home theater. It is required to complete the function of using the home theater. The process is as follows: • direct remote control: coordinate the switch of each equipment • popcorn opener & ...

Posted by intenseone345 on Wed, 25 May 2022 09:09:47 +0300

@Usage of Query annotation (Spring Data JPA)

Reference article: http://www.tuicool.com/articles/jQJBNv   1. A simple example of @ Query annotation @Query(value = "select name,author,price from Book b where b.price>?1 and b.price<?2") List<Book> findByPriceRange(long price1, long price2);   2. Like expression @Query(value = "select name,author,price from Book b where b.name ...

Posted by sandthipe on Wed, 25 May 2022 08:55:33 +0300

Meituan distributed ID generator (Leaf), which can't be missed, is an easy-to-use batch

Leaf Leaf is a distributed ID generation service launched by meituan. Its name is taken from the words of German philosopher and mathematician Leibniz: "there are no two identity leaves in the world." ("there are no two same leaves in the world"), taking a name has such moral meaning, meituan programmer Niu break! Advantag ...

Posted by Chris_Evans on Wed, 25 May 2022 07:06:18 +0300

Under what conditions is StringBuider more efficient?

introduction It is said that String builder is more efficient than String in dealing with String splicing, but sometimes there may be some deviation in our understanding. Recently, when I tested the efficiency of data import, I found that my previous understanding of string builder was wrong. Later, I found out the logic of this piece by mean ...

Posted by gausie on Wed, 25 May 2022 06:05:45 +0300

This article covers all the problems related to Java inheritance

Related articles: Object oriented re exploration : the basic concept of object-oriented is introduced Detailed explanation of object creation in Java : describes the creation of objects and the use of constructors stay Object oriented re exploration The concept of inheritance has been introduced in general in this article. Here are the spec ...

Posted by iyia12co on Wed, 25 May 2022 02:40:07 +0300