Java
-
Breakpoint continuation function of java video stream
The problem of video dragging in the browser needs to be solved in the project -
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 …… -
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…… -
Enumeration and annotation of Java
JDK1. 5. The newly added enum keyword is used to define enumeration classes. Differences between enumeration class and…… -
-
Abstract class of Java
With the definition of new subclasses in the inheritance hierarchy, the class becomes more and more specific, while th…… -
Bit operator of Java
Integer to binary: integer toBInaryString(6) < <: move left, 3 < < 2 = 3 * 2 * 2 = 12 >>: shift righ…… -
Reflection mechanism of Java
It's hard to understand what this is, for example. Suppose we have a picture of animation now. Through this picture, w…… -
Java generics
What is generics? The generic type is jdk1 5 newly added to solve the security problem of data types. Its main princip…… -
Construction methods such as Java
Characteristics of the constructor: Function of constructor: create objects and initialize them; Syntax format: Modifi…… -
Dynamic agent design pattern of Java
Proxy: an operation class that specifically completes proxy requests. It is the parent class of all dynamic proxy clas…… -
-
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……