In fact, two years ago, when the school recruited, I submitted a resume to Ali. The result was obviously cold. Then this ideal was temporarily put down, but this seed has been buried in my heart.
In the past two years, in addition to work, I also insisted on blogging, so I met a lot of excellent friends. I learned a lot from them. I shared this interview and hoped to help more people.
I will share a copy of the review materials before the interview and the answers to these interview questions.
One side (remote video side)
- Self introduction
- Project Introduction
- Introduction to Redis
- Know the redis source code
- Know the redis cluster
- The principle of Hashmap
- Why hashmap capacity is a power of 2
- Source code of hashset
- Object class methods you know
- hashcode和equals
- Have you rewritten hashcode and equals? What should you pay attention to?
- Suppose there is a student class with a student ID and name. When I rewrite the hashcode method, only the student ID is involved in the calculation. What will happen?
- Put a student object into the set, then change the student ID of the student object, and then put it in. Can it be put into the set? And tell why
- Redis persistence? What are the ways and the principle?
- Talk about stable sorting algorithms and unstable sorting algorithms
- Talk about the idea of quick sort
I deliberately sorted it out. There are many questions that can not be clarified by a few sentences, so I sorted them into a document to answer these interview questions. Many questions actually have simple answers, but the thinking and logic behind them are not simple.
Two sides (site)
- Self introduction
- Talk about the acid of the data
- What is consistency
- What is isolation
- Mysql isolation level
- How each isolation level is solved
- Mysql needs to add nextkey lock, how to write the statement
- Java memory model, garbage collection
- Thread pool parameters
- Explain each parameter
- Then the interviewer set up each parameter, gave a thread, and described the complete thread pool execution process
- What is the difference between Nio and IO
- The difference between Nio and aio
- How to implement Spring's aop
- What are the implementation methods of Spring's aop
- The realization and difference of dynamic proxy
- Does Linux know?
- How to check system load
- If the parameter of Cpu load is 4, describe the current situation of the system
- Linux, command to find the largest file on disk
- Linux, how to view system log files
- Hand tearing algorithm: Leeetcode original question 22, Generate Parentheses, given n pairs of parentheses, please write a function to generate a new combination of parentheses and return all the combined results.
Three sides
- Talk about the Java memory area.
- What is a distributed system?
- What aspects would you consider for distributed systems?
- Why is the TCP/IP protocol unreliable?
- What are the seven-layer models of OSI? Which four-layer model is TCP/IP?
- Let me talk about the three-way handshake and four-way wave process of the TCP protocol.
- Why is TCP a three-way handshake for establishing a connection, but a four-way handshake for closing a connection? Why can't I connect with two handshake?
- Why does the TCP TIME_WAIT state need to wait for 2MSL before returning to the CLOSED state?
- What are DoS, DDoS, DRDoS attacks? How to defend?
- Describe the Java exception hierarchy.
- What are checked exceptions, unchecked exceptions, runtime exceptions? And give examples to illustrate.
- Will the finally block be executed?
- Under normal circumstances, when a return statement is encountered in a try block or a catch block, will the finally statement block be executed before or after the method returns?
- The execution order of try, catch, and finally block.
- In the Java virtual machine, what types of data can be divided into?
- How to understand stack and heap? What's in the heap? What is stored in the stack?
- Why distinguish between heap and stack? Isn't it possible to store data in the stack?
- In Java, what is the starting point of the stack and also the starting point of the program?
- Why not put the basic types in the pile?
- What about passing values when passing parameters in Java? Or pass by reference?
- Is there a concept of pointers in Java?
- In Java, what parameter is used to set the stack size?
- How much space does an empty Object object occupy?
- What are the types of object reference types?
- Talk about the garbage collection algorithm.
- How to solve the problem of memory fragmentation?
Before going to interview with your favorite company, I suggest that you practice your hands first. I first went to Meituan and Kuaishou, and I would bring a recording pen every time, so that I could find my mistakes and correct them more quickly. Basic , social recruitment also emphasizes basics, but it is more about investigating projects . Some of the above questions may be very simple, but the interviewer will dig deep in some points.
Before the interview, the editor also prepared for a long time. The first is mainly for reading e-books, learning notes and videos, and the latter is the real interview questions. Here, the editor can share a wave with you, and interested friends can forward and follow the background private messages. 【Notes】Free collection
My study notes
Redis high-frequency interview questions (with answers)
redis combat
Mysql frequent interview questions (with answers)
MySQL performance tuning and architecture design analysis
Basics
Performance optimization
Architecture Design
springboot high-frequency interview questions (with answers)
springboot development guide
MyBatis frequent interview questions (with answers)
MyBatis source code analysis
Concurrent programming high-frequency interview questions (with answers)
Toutiao, Baidu, Alibaba, JD and other big manufacturers written test papers
Although it’s only p6, it’s an affirmation of my hard work in the past two years. It also fulfilled a dream of my own and will continue to work hard in the future.
These real questions and study notes in the article are not complete for everyone due to space reasons. Friends who need it can help like + follow, add assistant VX: mxx2020666, you can get it for free