Java
-
Java static proxy and dynamic proxy
proxy pattern Static proxy According to the standard implementation method of agent mode: public interface API { …… -
Delayed execution using lambda programming
The main reason for using lambda expressions is to delay the execution of the code to an appropriate point in time. Al…… -
Java 8’s stream API uses
preface This time I want to introduce the API use of Java stream. I'm working on a new project recently, and then I ca…… -
In java reflection, class Difference between forname and classloader
preface Recently, during the interview, I was asked about class in java reflection The difference between loading clas…… -
Let’s talk about your understanding of ThreadLocal
preface When I was asked about ThreadLocal during the interview, I didn't answer well (grandma's, now I feel that I ca…… -
Is the size method of concurrenthashmap thread safe?
preface During the interview, I was asked, is the size method of concurrenthashmap thread safe? This question is reall…… -
Understanding I / O model of Java NiO (I)
preface I used to be weak in Java NiO, and I missed an opportunity because of this knowledge. So I'm going to study th…… -
Java8 adds a new method removeif in the collection
I remember in my previous job search experience, I met an interviewer who asked me a very basic question. The question…… -
Experience of the interview questions, first make the next part of the summary.
preface I've been interviewing for a week. I've experienced all kinds of interviews, good ones, bad ones, long ones, s…… -
Can you tell me what AQS is? How do you use it?
preface During the Java interview, the knowledge related to multithreading cannot be avoided and will certainly be ask…… -
Tell me about your understanding of volatile in Java
preface @H_@ R_ 301_ 2408@_3 @In fact, I have always mastered the knowledge related to volatile, and can roughly tell …… -
Understanding I / O model of Java NiO (2)
preface The last article explained some basic concepts of I / O model, including synchronous and asynchronous, blockin…… -
Replacement of swtich in Java program optimization
Keyword switch statements are used for multi condition judgment. Their functions are similar to if else statements, an…… -
[turn] how to prepare technical interview answers in Java direction (summary version)
This article is reproduced from: "Java regiment" official account. 1. Difference between object oriented and process o…… -
Tell me about your understanding of SPI in Java
preface Recently, I was asked about SPI during the interview, but I didn't answer. It was mainly for my own reason. I …… -
Anonymous inner class of Java
Person. java Main. java Output: The execution is to construct an anonymous subclass of the method Jack -
Singleton design pattern of Java
What is a design pattern? Design pattern is the code structure, programming style and thinking way to solve problems a…… -
Java factory method design pattern
Factory method pattern is the most widely used pattern in design pattern. In object-oriented programming, the creation…… -
Encapsulation of Java
In Java, the member variable is declared as private, and then public methods are provided: setxxx() and getxxx() to op…… -
Initialization block of jvaa
1. Function of initialization block: initialize Java objects; 2. Program execution sequence: declare the default value…… -
Java array
There are several ways to declare a one-dimensional array: Int a [] and int [] a Dynamic initialization: int [] a = Ne…… -
Get the type of variable in Java
Java must define a function to obtain the type of variable: Output: Java lang.Short -
Java annotation
Annotation is actually a special tag in the code. These tags can be obtained during compilation, class loading and run…… -
Can constructors in the parent class of Java be inherited by subclasses?
The subclass inherits the properties and methods of the parent class by default, but does not inherit the constructor …… -
This keyword of Java
What is this? When will it be used? This is used when the object calling the method needs to be used in the method. Fo…… -
Java inner class
In Java, the definition of one class is allowed to be located inside another class. The former is called internal clas…… -
+ + and in Java–
Difference between I + +, I -- and + + I, -- I: I + +, I -- assignment before operation; @H_ 502_ 17@++i , -- I is cal…… -
Final keyword of Java
When declaring classes, attributes and methods in Java, you can use the keyword final to modify them, indicating "fina…… -
Thread of Java (thread creation method, thread class in Java, thread synchronization, thread life cycle, communication between threads)
CPU: 10 core, main frequency 100MHz 1 core dominant frequency 3GHz So which CPU is better? Isn't the more CPU cores th…… -
JavaBean of Java
JavaBean is a reusable component written in Java language. JavaBeans refer to Java classes that meet the following sta…… -
Polymorphism of Java
Polymorphism: the most important concept in object-oriented, which is embodied in Java in two ways: Member variable ca…… -
Logical operators of Java
&-Logic and | - logic or- Logic non &&- short circuit and | - short circuit or ^ - logic XOR Points needin……