Preface
With the opening of campus recruitment of major companies, a large number of fresh graduates are busy looking for a job. Many students said that they were clearly prepared, but there were still questions during the interview, and even after the interviewer asked questions Either I couldn't answer for a long time, or the answer was illogical, I felt like I failed in the interview.
So the editor has compiled the experience of all the classmates who found a job for everyone, hurry up and learn it during the National Day!
Byte beating-back end (one side):
- Algorithmic problem: Given a sequence without repeated numbers, return all possible permutations, as well as time complexity, non-recursive solution
- Question project (database related)
- The underlying implementation of MySQL's joint index
- Linux virtual memory concept
- Linux default page size and reasons
- The concept of affairs
- Implementation of transactions in MySQL
- When will MySQL use gap locks
It is not difficult to see from these problems that bytes are more important than databases, so everyone, hurry up and learn!
Ant Financial-backend (phone side)
- What is Spring AOP and how does Spring apply AOP
- Introduce the interceptor filter and interceptor, what is the difference
- Introduce the MVC architecture pattern, what are the advantages and disadvantages
- How to implement a thread synchronized hashmap and how to avoid HashMap deadlock
- What is the difference between JAVA's heap and stack
- What are the four necessary conditions for deadlock? What kind of situation is a deadlock
- What are the transaction isolation levels of the database
- Introduce Spring's transaction synchronization manager
- Introduce pessimistic lock and optimistic lock separately
- How MySQL implements pessimistic locking
- What are the ways to create a new thread in JAVA
- What are the core parameters of JAVA to create a thread pool
- What happens to the core parameters of the JAVA thread pool when the number of threads is large
- How to ensure the concurrency of the API interface provided to the outside in your project
- Did you encounter hard bones or want to give up in the project (in your usual study), how did you overcome it?
Because it was a telephone interview, the preparation was not comprehensive enough, and some questions were not answered very well. The most important thing the interviewer asks is transaction locks and threads. Fortunately, you have made corresponding preparations before submitting your resume.
Xiaomi-backend
one side
- The difference between ArrayList and LinkedList
- The underlying data structure of HashMap
- Concurrency of HashMap
- How does ConcurrentHashMap solve the concurrency problem of HashMap
- ConcurrentHashMap is locked when reading or writing
- The role of the static keyword
- The difference between interface and abstract class
- JVM memory model
- Implementation of the stack in JVM
- The role of local method stack in JVM
- What kind of memory leaks will the stack in JVM cause, and under what circumstances
- Will the program counter cause memory overflow
- How is the heap partitioned in the JVM
- Is the new object necessarily stored in the heap?
- What kind of memory leaks will the heap cause in the JVM, and under what circumstances
- How does Java ensure thread safety
- The difference between synchronized and ReentrantLock
- The use of synchronized and ReentrantLock, when to release the lock
- volatile keyword
- Implementation of Spring AOP
- The difference between Spring boot and Spring
- Implementation of Spring boot automatic configuration
- How to call private methods of a class in reflection
- How MySQL finds performance problems and optimizes
- How the project is automatically deployed
Two sides
- The principle of the leftmost prefix of database indexes
- The joint index of the three keywords, the leftmost uses fuzzy matching, can the latter two still be indexed?
- Is there any way to delete data in a table
- The difference between truncate and delete, which is faster in performance
- The realization principle of truncate
- The difference between inner connection and outer connection, the difference between left outer connection and right outer connection
- What is familiar on JAVA
- How hashmap resolves conflicts
- What are the ways to resolve conflicts
- Java class loading process
- Why is there a thread pool
- Introduce Synchronized and Lock
- Synchronized lock and release lock process (lock coarsening, etc.)
- Which partition will the object enter first after it is created for the first time
- Which partition will the object enter after n major gc in the new generation
- Under what circumstances will the old generation perform full gc
- The difference between osi layered architecture and tcp/ip layered architecture
- Why does tcp wave four times when disconnecting and three handshake when establishing connection
- The difference between http1.0 and http1.1
- Status code (what are 200, 400, 401)
- Algorithmic problem: Container holding water problem: Given an integer array arr, all values in it are known to be non-negative. Treat this array as a container. Please return how much water the container can hold.
Are you panicking when you see Xiaomi’s interview questions, so the friends who are going to meet Xiaomi must be fully prepared, and don’t worry about not being interviewed, just as they recognize their shortcomings.
Huawei-General Software Development Engineer
one side
- What technology, framework, and operating system are used in the project
- Project code amount
- The difference between java abstract class and interface
- jvm memory model
- What Java needs to pay attention to garbage collection
- Notes on multi-threaded development
- Multi-threaded debugging and positioning tool (jvm)
- Know which operating systems
- Idea used plugins
- Programming question: number to excel list item
- Small group of projects
Two sides
- Introduction project
- MySQL index use experience
- mysql foreign key selection principles
- Joint index
- SQL injection problem
- The principle of spring transaction
- Commonly used containers and application scenarios for java
- How to modify the Java arraylist to be thread-safe
- The selection principle of Java map keys
- Programming problem: 0 elements in the array are moved to the end of the array, and operations are performed in the original array. The relative order of non-zero elements cannot be changed
to sum up
In general, Huawei's interview is relatively simple in my opinion, because I have interviewed many companies before and I have summarized it every day. But it is also possible that I am more lucky.
Every interview has to be summarized. If there are more problems to summarize, there will be fewer problems next time.
And cheer yourself up every day and keep your mindset. Only after having tasted the victory and defeat, and running away in a hurry, will he really grow up. It doesn't matter if you cry, you have to cross over.
The editor has also sorted out more interview questions and answers for everyone: click here to get it for free, the code: CSDN , there are more interview topics and videos from major companies!