Introduction to Java 17 new features (LTS)

>Like and see again, unlimited power. Hello world:) wechat search Program ape Alan ใ€. > > this paper Github.com/niumoo/JavaNotes and Unread code blog Has been included, there are many knowledge points and series of articles. Java 17 was officially released on September 14, 2021. Java 17 is a long-term support (LTS) version. This ...

Posted by stueee on Mon, 08 Nov 2021 18:31:42 +0100

Interview question series: after using Java generics for so many years, I only know its fur

Interview question: what is your understanding of generics? Interview investigation point Objective: to understand the job seekers' mastery of the basic knowledge of Java. Scope of investigation: Java programmers working for 1-3 years. background knowledge Generics in Java is a new feature introduced by JDK5. It ...

Posted by yakk0 on Sat, 06 Nov 2021 00:07:31 +0100

java annotations are easy to use

java annotations are easy to use Annotations have been used throughout the development process, and today I finally want to look at the implementation of annotations.Drive directly // Custom Notes // Annotation has been implemented here // Note that comments are only valid in the form of reflection calls @Retention(va ...

Posted by gotit on Mon, 20 Jul 2020 16:23:01 +0200

Chapter 13: concurrent deadlock and enterprise solutions (deadlock, livelock, starvation)

1. What is a deadlock? What's the harm? 1.1 what is deadlock? Occurs in concurrency [mutually exclusive]: when two (or more) threads (or processes) hold each other's resources required by each other, but do not actively release them, all of them can't move forward, resulting in endless blocking o ...

Posted by ollmorris on Mon, 29 Jun 2020 08:23:19 +0200

Aop Series III (agent) of spring source sharing

Overall structure For spring AOP Proxy objects, the main task is to create a ProxyFactory, and then create AopProxyFactory to create AopProxy, and then use AopProxy to create the corresponding Proxy. The method call in the Proxy class Proxy created is to call MethodInvocation, which consists of Method ...

Posted by shiggins on Sun, 28 Jun 2020 06:22:28 +0200

One article tells you how much CPU branch prediction affects performance

originate stackoverflow Last question Why it is faster to deal with an ordered array than to deal with an array without it , there are some discussions in the original text. Let's first reproduce the results and then explain why! We have the following two sections of code. The code looks similar, but in fact, the logic is the same. They count t ...

Posted by ray-solomon on Thu, 25 Jun 2020 14:28:53 +0200

Spring usage - AOP

1, What is the role of AOP Through AOP, we can isolate all parts of the business logic, so as to reduce the coupling between various modules. At the same time, we can add new functions to the backbone functions without modifying the source code Underlying principle Dynamic proxy used Dynamic agen ...

Posted by skeener on Sun, 21 Jun 2020 08:45:21 +0200

Solution to the problem that PhpStorm64 cannot be started

Solution to the problem that PhpStorm64 cannot be started It has been several years since CSDN was used, but I have never tried to write my own content, just as IDE problems cannot be solved, I write blog ๐Ÿ˜… Accumulate my poor writing experience. As a phper, PhpStorm IDE is undoubtedly the most powerf ...

Posted by sneha1234 on Sat, 20 Jun 2020 07:46:42 +0200

Learn Java proxy mode, this one is enough

This article will explain the agent mode through its concept, characteristics, and finally realize the use scenarios of each agent mode through coding. What is agent mode Agent pattern is a programming design pattern in Java language. There are two important roles: the principal class and the agent class. The agent class can call the delegate c ...

Posted by Chris.P on Fri, 19 Jun 2020 11:36:09 +0200

java basic review common classes

I java.lang Class in package does not need to import package 1. Features: ใ€€ใ€€ java.lang Package is the core of Java language, which provides the basic classes in Java. Including basic Object Class, Class class, String Class, basic type wrapper Class, basic math Class and other basic classes. 2. 8 basic types of initialization default va ...

Posted by manamino on Thu, 18 Jun 2020 06:01:02 +0200