包含标签:Java 的文章
-
Spring data mongodb optimistic lock
Spring data provides an optimistic lock implementation for mongodb: The @Version annotation provides Syntax similar to…… -
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 …… -
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…… -
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…… -
Program flow control of Java
Sequential structure: the code is executed from top to bottom; Branch structure: if () { } else{ } if () { } else if (…… -
Object class of Java
Object is the parent class of all classes, also known as the base class. If you do not use the extends declaration in …… -
Java (I) basic knowledge
Common DOS commands: History of computer language: Javase: Java Standard Edition, which provides a complete Java core …… -
Ternary operator of Java
Logical operation? m : n; If the logical operation is true, M is returned; otherwise, n is returned example: Judge the…… -
Subclass object instantiation process of Java
Suppose there is a parent class: There is a subclass: Student stu = new student(); The process is as follows: -
Collection, a tool class of Java operation collection
Collections is a tool class that operates on collections such as set, list, and map. Collections provides a large numb…… -
Bit operator of Java
Integer to binary: integer toBInaryString(6) < <: move left, 3 < < 2 = 3 * 2 * 2 = 12 >>: shift righ…… -
Java of Java io. File related methods
java. io. Use of file. IO principle and stream classification. File stream: FileInputStream, fileoutputstream, FileRea…… -
Variable number formal parameters of Java
//Use array parameters to define methods public static void test (int a,String[] books); //A variable number of formal……
