From friends, recent interview questions for P7 positions such as Ali, Tencent, and Meituan

Interview questions from Dachang at the beginning of the year and recent friends.

Alibaba

  1. How to make a deep copy of an object, except for clone

  2. happen-before principle

  3. Practice of jvm tuning

  4. Will singleton objects be recycled by gc of jvm?

  5. How to optimize redis if the list is large

  6. Tcp dip and half packets

  7. Some APIs and usages related to socket programming

  8. Is the connection established and processed by the same socket? What are the two queues in the socket?

  9. Have you used netty in the project?

  10. New features of TSL1.3

  11. AES algorithm principle

  12. Use of redis cluster

  13. Comparison of mysql and mogo

  14. Scenario: Design an im system including group chat and single chat

  15. Scenario question: design database connection pool

  16. Scenario: Design of the spike scenario

Meituan

  1. Project detailed information, involving some aiot interactive processing, how to realize the instruction encoding and decoding and instruction conversion of a large number of different devices, server architecture, own responsibility module

  2. OOM troubleshooting

  3. Have you ever used a distributed lock, how to implement it, and talk about the principle

  4. Where is the redis jump meter and why is it used?

  5. Practical experience of mysql optimization

  6. Difference between hashMap1.8 and 1.7

  7. The principle and use of netty

  8. tcp connection process

  9. Socket has several queues

  10. How many connections can a server support and why

  11. How to set each parameter of tcp

  12. The underlying basic data types of redis, the principle of redis cluster, the use of cluster cluster

  13. mysql storage engine type, index type, innodb data storage method

  14. Thread pool parameter description, rejectHandler description

  15. The principle of volatile

  16. What kinds of garbage collectors does jvm have, and their respective application scenarios

  17. Features of g1 collector

  18. jvm structure

  19. The four-layer and seven-layer load balancing principle of load balancer

  20. Scenario question: Design a high-availability and high-concurrency e-commerce system

Tencent

  1. How to achieve idempotence on the Kafka production side

  2. How Kafka implements distributed messaging

  3. Kafka's slave synchronization mechanism

  4. How does Kafka perform message writing ack

  5. Why the hash method must be implemented first to implement equals

  6. How to save the structure of a new object

  7. Talk about the process of class loading

  8. Redis hash data structure and how to expand

  9. How to read mysql snapshot

  10. The transaction isolation level of msyql, the difference between non-repeatable read and phantom read

YY

  1. JVM tuning ideas

  2. How to expand the redis cluster cluster smoothly and excessively, design from the client

  3. If mysql's sql itself is okay, there is no index reason (repeatedly emphasized that sql is no problem, no need to consider from the perspective of sql)

  4. How does Kafka ensure that messages are not lost

  5. How to perform cross-database joint query

  6. The current limit design is implemented in java, not the tool library

  7. The design of dubbo and the complete calling process (to be detailed)

  8. How to solve the problem of es split brain

Poison

  1. What happened to the process of new an object

  2. What is the principle of spring circular reference solution?

  3. The difference between FactoryBean and BeanFactory

  4. Synchronized principle?

  5. How does CAS volatile work?

  6. Memory model? What is main memory? What is working memory?

  7. Database index type? principle?

  8. Spring Bean life cycle?

  9. mysql optimization experience?

  10. mysql lock type?

  11. What should be paid attention to during the use of redis?

  12. JVM tuning parameters?

  13. Principle of thread pool? What does the attribute mean?

  14. HashMap ConcurrentHashMap principle?

Are you hungry

  1. Project introduction, how to continuously optimize the project and upgrade the structure? If the business volume increases sharply, how to ensure the system's high availability and scalability?

  2. How much is the order volume and daily increase? How to do sub-database sub-table? Based on what dimension?

  3. It is detected that the memory of the jvm is larger than the memory of the xmx configuration of the jvm. One of the three machines has the above phenomenon. How to explain?

  4. How to solve the redis hot key?

  5. Why is Kafka high performance?

  6. OOM scenario analysis?

  7. How is the mysql cluster deployed, master-slave synchronization?

  8. How to set which GC method to use? What are the GC collectors of different ages?

  9. How to troubleshoot high online CPU

  10. New features of jdk1.8

  11. BIO\NIO understand

  12. How does mq ensure message reliability?

  13. What should I do if the system load is too high and what caused the problem? How to troubleshoot?

  14. What are the brief introductions of linux operating system?

Nakadori

  1. JVM introduction

  2. JMM model

  3. What are the gc roots?

  4. JVM tuning experience?

  5. Thread pool considerations, exception handling

  6. The use and principle of distributed locks?

  7. How to persist redis? High availability?

  8. How does the rpc framework work?

  9. Troubleshooting for slow interface calls

  10. Business system architecture, business volume

  11. Database design, optimization plan

Fish Bubble (Bixin)

  1. More accomplished projects

  2. How is settlement achieved?

  3. Unified cash register design?

  4. What is the difference between rocketMq and kafka?

  5. The flow of Kafka messages from production to consumption?

  6. hashMap  hashTable区别?

  7. Understanding of thread safety?

  8. How does CAS realize?

  9. How many ways to implement code locking?

  10. Quick sort algorithm

  11. Distributed locks to handle the failure of lock acquisition, synchronization between threads?

  12. Redis thread model, expiration mechanism, elimination strategy?

  13. Thread pool parameters, usage scenarios, parameter settings analysis?

  14. mysql storage engine, index structure, sub-database and sub-table

  15. Scenario: Design a red envelope grab system

Finally, welcome to scan the QR code to follow the official account Ai Xiaoxian

Focus on sharing Java technology knowledge, interview experience with major companies, system architecture design, technology growth experience, etc.

Ai Xiaoxian, the owner of the number, has been a technical director for 3 years after graduation, and is now a local life technology expert in Alibaba, with more than 10 years of experience in development and architecture. Over the years, I have been engaged in many industries such as Internet security, e-commerce, hotels, cross-border payment, and finance. After paying attention, I will definitely gain.

Guess you like

Origin blog.csdn.net/bjweimengshu/article/details/110016285