Hard to get through Jin Jiu! Summary of Interview Questions for Byte, Ant Financial, Xiaomi, and Huawei

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):

  1. Algorithmic problem: Given a sequence without repeated numbers, return all possible permutations, as well as time complexity, non-recursive solution
  2. Question project (database related)
  3. The underlying implementation of MySQL's joint index
  4. Linux virtual memory concept
  5. Linux default page size and reasons
  6. The concept of affairs
  7. Implementation of transactions in MySQL
  8. 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)

  1. What is Spring AOP and how does Spring apply AOP
  2. Introduce the interceptor filter and interceptor, what is the difference
  3. Introduce the MVC architecture pattern, what are the advantages and disadvantages
  4. How to implement a thread synchronized hashmap and how to avoid HashMap deadlock
  5. What is the difference between JAVA's heap and stack
  6. What are the four necessary conditions for deadlock? What kind of situation is a deadlock
  7. What are the transaction isolation levels of the database
  8. Introduce Spring's transaction synchronization manager
  9. Introduce pessimistic lock and optimistic lock separately
  10. How MySQL implements pessimistic locking
  11. What are the ways to create a new thread in JAVA
  12. What are the core parameters of JAVA to create a thread pool
  13. What happens to the core parameters of the JAVA thread pool when the number of threads is large
  14. How to ensure the concurrency of the API interface provided to the outside in your project
  15. 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

  1. The difference between ArrayList and LinkedList
  2. The underlying data structure of HashMap
  3. Concurrency of HashMap
  4. How does ConcurrentHashMap solve the concurrency problem of HashMap
  5. ConcurrentHashMap is locked when reading or writing
  6. The role of the static keyword
  7. The difference between interface and abstract class
  8. JVM memory model
  9. Implementation of the stack in JVM
  10. The role of local method stack in JVM
  11. What kind of memory leaks will the stack in JVM cause, and under what circumstances
  12. Will the program counter cause memory overflow
  13. How is the heap partitioned in the JVM
  14. Is the new object necessarily stored in the heap?
  15. What kind of memory leaks will the heap cause in the JVM, and under what circumstances
  16. How does Java ensure thread safety
  17. The difference between synchronized and ReentrantLock
  18. The use of synchronized and ReentrantLock, when to release the lock
  19. volatile keyword
  20. Implementation of Spring AOP
  21. The difference between Spring boot and Spring
  22. Implementation of Spring boot automatic configuration
  23. How to call private methods of a class in reflection
  24. How MySQL finds performance problems and optimizes
  25. How the project is automatically deployed

Two sides

  1. The principle of the leftmost prefix of database indexes
  2. The joint index of the three keywords, the leftmost uses fuzzy matching, can the latter two still be indexed?
  3. Is there any way to delete data in a table
  4. The difference between truncate and delete, which is faster in performance
  5. The realization principle of truncate
  6. The difference between inner connection and outer connection, the difference between left outer connection and right outer connection
  7. What is familiar on JAVA
  8. How hashmap resolves conflicts
  9. What are the ways to resolve conflicts
  10. Java class loading process
  11. Why is there a thread pool
  12. Introduce Synchronized and Lock
  13. Synchronized lock and release lock process (lock coarsening, etc.)
  14. Which partition will the object enter first after it is created for the first time
  15. Which partition will the object enter after n major gc in the new generation
  16. Under what circumstances will the old generation perform full gc
  17. The difference between osi layered architecture and tcp/ip layered architecture
  18. Why does tcp wave four times when disconnecting and three handshake when establishing connection
  19. The difference between http1.0 and http1.1
  20. Status code (what are 200, 400, 401)
  21. 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

  1. What technology, framework, and operating system are used in the project
  2. Project code amount
  3. The difference between java abstract class and interface
  4. jvm memory model
  5. What Java needs to pay attention to garbage collection
  6. Notes on multi-threaded development
  7. Multi-threaded debugging and positioning tool (jvm)
  8. Know which operating systems
  9. Idea used plugins
  10. Programming question: number to excel list item
  11. Small group of projects

Two sides

  1. Introduction project
  2. MySQL index use experience
  3. mysql foreign key selection principles
  4. Joint index
  5. SQL injection problem
  6. The principle of spring transaction
  7. Commonly used containers and application scenarios for java
  8. How to modify the Java arraylist to be thread-safe
  9. The selection principle of Java map keys
  10. 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!

 

 

 

Guess you like

Origin blog.csdn.net/qq_43080036/article/details/108885879