Java basic disk
From the following points, write a separate article in detail. (ps: write only practical content) 1. Install and configure environment variables on the Mac side. 2. Basic grammar. 3. Object oriented. 4. Collection framework. 5. Exception frame. 6. IO framework (InputStream, OutputStream). 7. Multithreading. 8. ...
Added by metrathon on Tue, 08 Mar 2022 19:41:13 +0200
The jdk used is 1.7. You need to understand the reflection mechanism and the concept of generic bytecode registration!
1, Agent mode
Proxy mode is a commonly used java design mode. Its feature is that the proxy class has the same interface with the delegate class. The proxy class is mainly responsible for preprocessing messages for the delega ...
Added by chris_2001 on Mon, 07 Mar 2022 23:03:39 +0200
Summary: Multi-threaded concurrent execution order in Java has always been the focus of interviews. Mastering the execution order of threads in Java will not only make you stand out in interviews, but also enable you to quickly locate "bizarre" problems caused by multi-threaded concurrency problems in your normal work so that you can ...
Added by newhen on Mon, 07 Mar 2022 19:59:39 +0200
LinkedHashMap inherits from HashMap. In addition to the features of HashMap, LinkedHashMap also provides the function of keeping the same traversal order and insertion order.
LinkedHashMap maintains a two-way linked list to ensure the consistency of traversal and insertion order.LinkedHashMap can be understood as a combin ...
Added by sports on Sat, 05 Mar 2022 04:27:20 +0200
java Source Analysis-Compile-Time Annotation Processor
In the previous article, we took a general look at how runtime annotation processors work. In this film, we discuss the underlying implementation of compile-time annotation processors.
1.Annotation Processing Tool
The Java Compile-Time Annotation Processing Tool (APT) is a ...
Added by Gladiator2043 on Thu, 03 Mar 2022 20:02:54 +0200
Generics play an important role in java, which can be seen in both open source framework and JDK source code.
It is no exaggeration to say that generics are essential elements in general design, so it is a required course to truly understand and correctly use generics.
1: Generic essence
Java generics is a new feature introduced in JDK ...
Added by cornelalexa on Mon, 14 Feb 2022 06:03:22 +0200
Take Vs2019 for example, when you click Run Program, the key will change, and if you add an error box, it won't change anywhere else. This is typical Observer mode.
1. Observer Mode
Observer Pattern: Defines a one-to-many dependency between objects that is notified and automatically updated whenever an object's state chang ...
Added by Fuzzy Wobble on Mon, 07 Feb 2022 19:41:25 +0200
java source code analysis - reflection Method class
1. What is it
The Method class provides information and access rights about a single Method on a class or interface. The Method reflected in the Method can be a strength Method on a class, a static Method, or an abstract Method on an interface.
public final class Method extends Executable
Added by onicsoft on Wed, 02 Feb 2022 19:13:03 +0200
java source code analysis - Reflection Class
1. What is class
Class is essentially a class of java. This class extracts and abstracts the relevant information of all classes in java. Simply put, the class class represents the type information of the created class. Class objects can provide the type information of a class object when allowed, ...
1, jdk installation
Download jdk: Official address: https://www.oracle.com/java/technologies/javase-downloads.html Unzip the downloaded package: #Use command:
tar -zxvf jdk-8u291-linux-x64.tar.gz
#To facilitate management after decompression:
mv jdk-8u291-linux-x64/ /usr/core/jdk
#I like to use core as a common (core) and immovable dire ...
Added by karlkatzke on Sun, 30 Jan 2022 20:05:46 +0200