Map for Java Collection Source Analysis: Super Interface Map_One Point Classroom (Multi-shore College)

Array and linked list have their own advantages and disadvantages in data processing. Array query is fast and insertion is slow. Linked list performs well in insertion, but the query is weak. Hash table integrates the advantages of array and linked list, and has good speed in insertion and search. The HashMap we will analyze later is implemente ...

Posted by pmaonline on Tue, 10 Sep 2019 07:53:58 +0200

Android Design Patterns - Observer Patterns

For loading, please indicate the source: https://www.cnblogs.com/tangZH/p/11175120.html    Observer model To put it bluntly, it is a one-to-many relationship that changes everything that depends on it. For example, object A, object B, object C. B and C depend on A, so A will change, B and C will also change. At this time A is the observer, ...

Posted by killswitchfilter on Mon, 09 Sep 2019 14:43:54 +0200

Definition and implementation of stack

Preface Language: Java Environment: IntelliJ IDEA JDK version: 1.8 Source code: GitHub Definition of stack A stack, also known as a stack, is a linear table with limited operations.Limits a linear table to insert and delete only at the end of the table.This end is called the top of the stack, while the other end is called the bottom.Inserti ...

Posted by Tonsil on Sat, 07 Sep 2019 20:49:58 +0200

Tomcat Server Configuration Details

Tomcat server is a free open source web application server, which belongs to lightweight application server. It is widely used in small and medium-sized systems and occasions where concurrent users are not very many. It is the first choice for developing and testing JSP programs. Generally speaking, Tomcat, like apache or Nginx web servers, ha ...

Posted by Altairzq on Sat, 07 Sep 2019 08:32:24 +0200

Talk about how the Callable task works? How did it get its execution results?

Talk about how the Callable task works? How did it get its execution results? Submitting a Callable task to the thread pool creates a new thread (the thread that executes the task) to execute the Callable task, but getting the execution result of the task through Future#get is in the caller thread that submits the task. Question 1: How does the ...

Posted by sabien on Fri, 06 Sep 2019 16:44:02 +0200

What's behind J.U.C. concurrent packages

Preface J.U.C is the abbreviation of java package java.util.concurrent, short for concurrent package in Chinese. It is a new basic api for writing concurrency related in jdk1.5. Java practitioners must be familiar with, at the same time, in the traffic age, concurrent packages have become a must-ask part of senior development interviews. This a ...

Posted by jmosterb on Fri, 06 Sep 2019 12:47:34 +0200

Definition and implementation of queues

Preface Language: Java Environment: IntelliJ IDEA JDK Version: 1.8 Source code: GitHub Definition of queue Queue is a special linear table. It only allows deletion at the front of the table, but insertion at the back of the table. Like stack, queue is a restricted linear table. The end of the insertion operation is called the end of the que ...

Posted by poppy on Thu, 05 Sep 2019 07:25:12 +0200

Implementation of COO and CSR Based on Array Form for Sparse Matrix

Preface Language: Java Environment: IntelliJ IDEA JDK Version: 1.8 Source code: GitHub Reference article: https://www.cnblogs.com/xbinworld/p/4273506.html What is Sparse Matrix In a matrix, if the number of elements with a value of 0 is much more than that of non-zero elements, and the distribution of non-zero elements is irregular, the ma ...

Posted by otterbield on Tue, 03 Sep 2019 13:01:06 +0200

AQS Series I: Source Code Analysis Unfair ReentrantLock

History of adding/unlocking Earlier (before jdk 1.5), when synchronization was used in concurrent environments, you didn't have many choices, mostly using synchronized keywords. Whether it's a synchronization method or a synchronization block, in short, if you encounter this keyword, the thread that has not acquired the lock will wait until the ...

Posted by Nhoj on Mon, 02 Sep 2019 05:22:59 +0200

Java Command Learning Series - javap

javap is a tool that comes with jdk and can be used for code Decompilation You can also view the bytecode generated by the java compiler. In general, few people use javap to decompile class files, because there are many mature decompilation to ...

Posted by jamjam1 on Fri, 30 Aug 2019 11:14:28 +0200