Hello, everyone. I'm cabbage. You can call me vegetable. One for sophomore. This article mainly explains the understanding of java generics, the simple use of generics in collections, and the custom generic structure (including classes, interfaces, and methods). If you gain something after reading this article, you can support bloggers for thre ...
Posted by christo16 on Wed, 27 Apr 2022 00:45:46 +0300
Misuse of Redis cache String
In our daily development, if Redis is used as the cache, the most used may be the String type. The String type is simple and easy to understand, but this is only the development aspect. If the amount of business data is too large, whether the feasibility of using String type storage is still the highest, we can rel ...
Posted by TheAngst on Fri, 22 Apr 2022 10:12:33 +0300
This article mainly explains the basic interview knowledge points related to processes and threads in Java programs, arranges the important knowledge, and explains it through intuitive demos and diagrams. On the deeper principles of Java processes and threads, I will Next Explain in.
Process and thread
Process: processes monopolize m ...
Posted by whistler on Thu, 21 Apr 2022 07:59:58 +0300
I've always been confused about IO multiplexing. Write an article to record what I see to prevent forgetting.
IO multiplexing is to use the kernel mechanism to poll a group of file descriptors to monitor whether there is an IO event in the write fd. If there is an IO event, the program will be informed.
IO multiplexing mainly in ...
Posted by jokkis on Tue, 19 Apr 2022 14:34:09 +0300
Author: Gong Shui Sanye. Now Microsoft engineer (Java back-end direction), retired OIer.
For more information about the interview algorithm, click here "Attention~
Reprint should pay attention to the official account contact list.
How to reduce the complexity of knapsack space from $o to $0 (c) $.
On the basis of ...
Posted by fuzzy1 on Mon, 18 Apr 2022 19:48:47 +0300
Hutool is a small and comprehensive Java tool class library, which helps us simplify every line of code and avoid repeated wheel building. If you need to use some tools, you might as well look in hutool. This paper summarizes 16 commonly used tool classes, hoping to help you!
The installation of Hutool is very simple. In Maven proje ...
Posted by bulldorc on Mon, 18 Apr 2022 14:40:19 +0300
During the interview, candidates are often asked, what design patterns have you used in the project? In this regard, you can systematically demonstrate your ability in design ideas through factory mode according to the steps given in this article.
1 create details through factory mode masking
Factory Method is used to mask the details of creati ...
Posted by marco839 on Mon, 18 Apr 2022 04:06:22 +0300
In some cases, some user requests may be sent repeatedly. If it is a query operation, it will not be a big problem, but some of them involve write operations. Once repeated, it may lead to serious consequences. For example, the transaction interface may place repeated orders if repeated requests.
Repeated scenarios may be:
The hacker inter ...
Posted by pp4sale on Sun, 17 Apr 2022 01:11:51 +0300
First of all, Exception and Error are inherited from Throwable class. In Java, only instances of Throwable type can be thrown or caught. It is the basic component type of Exception handling mechanism.
Exception and Error embody the two ways of exception handling in JAVA.
Exception is an unexpected exception in the runnin ...
Posted by darrensw on Sat, 16 Apr 2022 02:23:37 +0300
Recently, the company is doing service-oriented. It needs to implement the Serializable interface for all classes in the model package, and display the value of the specified serialVersionUID at the same time When I heard this demand, several questions suddenly appeared in my mind, such as:
(1) What are serialization and deserializati ...
Posted by JAB Creations on Fri, 15 Apr 2022 18:34:04 +0300