Ali interview review: what are the four Java references and what are their differences?

We all know that in JVM garbage collection, GC can judge whether the object instance or data in the heap is garbage by reference counting method and reachability algorithm. Whether the number of references of an object is determined by the reference counting algorithm, whether the reference chain of an object is reachable by the root search al ...

Added by Morbius on Tue, 12 Oct 2021 02:53:47 +0300

JUC multithreading: Atomic class and CAS principle

1, Principle of Atomic atomic class:          Atomic atomic operation class is implemented based on lockless CAS + volatile, and all methods in the class are decorated with final to further ensure thread safety. The specific implementation of CAS algorithm lies in the Unsafe class. All methods of Unsafe ...

Added by Oxymen on Mon, 11 Oct 2021 04:00:18 +0300

Basic learning of Java concurrency -- thread life cycle

preface The last blog introduced how to stop a thread correctly. This blog began to introduce the life cycle of a thread, which is also a few states of a thread that are often mentioned in interviews. At the same time, we made a summary for the transformation of these states. Which states I've read some summaries about the status of threads. ...

Added by dlkinsey85 on Sun, 10 Oct 2021 10:24:41 +0300

Hive sql programming interview questions

Hive sql programming interview questions Question 1 Table structure: uid,subject_id,score Ask: find out the students whose scores in all subjects are greater than the average score of a certain subject The data set is as follows 1001 01 90 1001 02 90 1001 03 90 1002 01 85 1002 02 85 1002 03 70 1003 01 70 1003 02 70 1003 03 85 1) Create t ...

Added by vinpkl on Fri, 08 Oct 2021 11:53:20 +0300

Interview challenge: how does Netty solve the null polling BUG of Selector? (illustration + second understanding + the most complete in History)

The article is very long. It is recommended to collect it and read it slowly! Java high concurrency enthusiast community: Crazy maker circle Here are some valuable learning resources: Free classic books: Java high concurrency core programming (Volume 1) Necessary for interview + necessary for large factory + necessary for salary increase Gan ...

Added by cloudhybrid on Fri, 08 Oct 2021 01:54:05 +0300

LINQ to SQL and IQueryable

Famous sayings and phrases "The easiest way to understand IQueryable is to think of it as a query that will produce a sequence of results when executed." - Jon Skeet What is the difference between LINQ to Object and LINQ to SQL? LINQ to SQL converts query expressions into SQL statements and executes them in the database. Instead of ...

Added by larryg on Fri, 01 Oct 2021 20:26:43 +0300

2021-10-01 annotation and reflection I

1, Annotation 1. Built in annotation 1.1 Override Annotation for overriding superclass methods Can only be used for decorating methods Represents a method declaration intended to override another method in a superclass 1.2 Depecated Not recommended Can be used to decorate methods, properties, and classes Indicates that programmers are ...

Added by Ola on Fri, 01 Oct 2021 06:02:20 +0300

Common interview questions

Why is there only value passing in Java? First, let's review some technical terms in programming language about passing parameters to methods (or functions). Call by value means that the method receives the value provided by the caller, while call by reference means that the method receives the variable address provided by the caller. A method ...

Added by blackcell on Sun, 26 Sep 2021 22:17:23 +0300

Stack and queue interview

Written earlier, this article is some questions about stack and queue asked by the interviewer during my interview. The answer to the question is summarized by myself. There may be some deviations. Please correct it If there are more problems in the follow-up, we will continue to add 1. What linear tables do you know? What about nonlinear ...

Added by kwdelre on Tue, 21 Sep 2021 06:16:07 +0300

HashMap principles learned? (HashMap storage and expansion)

debug is familiar with HashMap's source code 1. New HashMap, when adding the first data (1) Execute new HashMap<>(); Call the constructor and set the load factor to the default load factor (0.75): static final float DEFAULT_LOAD_FACTOR = 0.75f; public HashMap() { this.loadFactor = DEFAULT_LOAD_FACTOR; // all other fields defau ...

Added by saeed99 on Wed, 15 Sep 2021 23:15:05 +0300