Want to go to Ali? Don't miss these Java interview questions

Preface

I believe that many friends want to work in a big factory. Today, the editor will share with you the Ali Java interview questions and interview process, hoping to help everyone.

Insert picture description here

Interview process

Let's talk about the interview process first. Generally large companies have 3-4 rounds of technical aspects and 1 round of HR aspects.

The first few rounds of technical aspects mainly asked about some basics, project implementation and expansion. The last round of technical aspects was about department bosses, mainly asking about some structure, technology, and business understanding, because at this time he looked at your potential. It depends on whether you have the value of nurturing.

The HR interview is mainly to chat with you. Many people hang up after the HR interview. It is usually not because you did not perform badly. It may be that your previous performance is average. The company is based on hc, talent matching, and other candidates. Compare and consider multiple dimensions, and finally decide whether to give you an offer.

Here is a list of questions asked:

Ali side (electric side)

The difference between synchronized and lock, usage scenarios. Read the synchronized source did
JVM automatic memory management, Minor GC and Full GC trigger mechanism
to find out about JVM tuning not, the basic idea is what
storage how the system designed to store huge amounts of data
to achieve the principle of cache design cache pay attention to what
Taobao popular commodity information in the memory area which JVM
page storage operating system of
the volatile keyword how to ensure the visibility of memory
happen-before principle
principle Lucene full-text search

Ali two sides:

Introduce yourself, no more than 3 minutes.
You said you are familiar with concurrent programming, so what types of Java locks are there, and the differences
How to ensure memory visibility
The process and principle of Http requests
The characteristics of
TCP connections How to ensure that TCP connections are safe and reliable
Why does the TCP connection need three handshake, two times is not possible, why
the principle of AOP The
difference between dynamic proxy and cglib implementation
Then you talk about the implementation principle of proxy, have you
seen the Spring source code, talk about the loading process of the Ioc container?

Ali three faces (director face)

Ask the project first, start with the project

**1) **How ​​is a more important point in the project achieved (requires in-depth technical principles)
**2) **What is the biggest difficulty encountered (what are the), and how did you solve it?
** 3) **If you need to expand a function, how to reduce the coupling degree of the system
** 4) **If you optimize for a function, how would you design and optimize

Know what distributed data consistency algorithm, specifically talk about
MySQL transaction isolation level and MVCC mechanism
Redis cache avalanche, cache penetration and how to solve it?
Asked the design of the spike system.
Talk about synchronization and asynchrony, when to use synchronization, when to use asynchronous
mysql Innodb index data structure, why is it a b+ tree, can it be implemented with hash?
The realization of distributed transactions?
How to solve redis and mysql data consistency?
What are the common MySQL master-slave synchronization solutions? Have you compared the advantages and disadvantages?

All around Ali (Director)

Introduce
yourself, draw your own project architecture diagram, and then ask questions about the architecture and middleware

HR face

Why did you leave?
What do you think of your career?
Salary expectations

Precautions:

During the interview, you must be confident, dare to express, and don't be overly exaggerated. Let the interviewer feel that you are very interested in this position.

During the interview, we may not know very well about some knowledge points, so we should try our best to speak out our own ideas instead of telling the interviewer that we don’t understand.

Compared with other companies, Ali pays more attention to feelings and dreams.
Ali's eight-character motto: optimistic, smart, pragmatic, and self-examination.

Guess you like

Origin blog.csdn.net/weixin_47955802/article/details/108776822
Recommended