preface
All the interview questions in this article are provided by fans of the real interview experience, Xiaobian will give you to my interview experience to share into a collection, in order to prepare for the interview of Java programmers friends a reference, I hope everyone can win the offer of the heart!!
In addition, as a reading benefit, Xiaobian also sorted out some Java interview questions, the needClick here to
alibaba
- How do objects make a deep copy, other than Clone
- Happen – before principle
- Practices for JVM tuning
- Will singletons be collected by the JVM’s GC
- If the redis list is large, how to optimize it
- TCP dip packets and half packets
- Socket programming related to some of the API and usage
- Is the same socket used to create and process the connection? What are the two queues in the socket
- Has Netty been used in the project
- TSL1.3 new features
- AES algorithm principle
- Use of Redis Clusters
- MySQL vs. MOGO
- Scenario problem: design an IM system including group chat and single chat
- Scenario: Designing a database connection pool
- Scene problem: seckill scene design
Meituan
- Details of the project, involving some AIOT interactive processing, how to achieve a large number of different devices instruction codec and instruction conversion, server architecture, their own responsibility module
- OOM troubleshooting
- Have you used distributed locking, how to implement it, how to explain the principle – where Redis skip table is used, why skip table
- Practical experience in MySQL optimization
- Differences between 1.8 and 1.7 in HashMap
- The Principle and Use of Netty
- TCP connection process
- Sockets have several queues
- How many connections can a server support, and why
- How to set TCP parameters
- The basic data types of Redis, the principle of Redis Cluster, the use of cluster
- MySQL storage engine type, index type, InnoDB data storage method
- Parameter specification for the thread pool, RejectHandler specification
- The principle of volatile
- What kinds of garbage collectors are available in the JVM and how they are used
- Characteristics of the G1 collector
- The JVM structures
- Four-layer and seven-layer load balancing principle of load balancer
- Scenario problem: Design an e-business system with high availability and concurrency
tencent
- How does Kafka’s production side achieve idempotency
- How does Kafka implement distributed messaging
- The synchronization mechanism of Kafka’s slave
- How does Kafka ack write messages
- Why is it necessary to implement the hash method first to implement equals
- How is the structure of an object saved after new
- Let’s talk about class loading
- Redis hash data structure and how to scale
- How to read a MySQL snapshot
- The transaction isolation level of MSYQL, the difference between non-repeatable read and phantom read
YY
- JVM tuning ideas
- How does Redis Cluster Scaling Smooth Data Transition from Client Design
- Mysql > select * from mysql. mysql > select * from mysql. mysql > select * from mysql. SQL
- How does Kafka ensure that messages are not lost
- How to combine database and table queries across libraries
- The flow limiting design is implemented in Java, not in a utility class library
- The design of Dubbo and the complete invocation process (in detail)
- How to solve the split brain problem of ES
Poison (a product)
- What happens to the process of new an object
- What is the principle of Spring circular reference resolution?
- FactoryBean differs from BeanFactory
- Synchronized principles?
- The principle of volatile CAS?
- Memory model? What is main memory? What is working memory?
- Database index type? The principle?
- Spring Bean life cycle?
- MySQL optimization experience?
- MySQL lock type?
- What should I pay attention to when using Redis?
- JVM tuning parameters?
- How does thread pool work? Attributes represent meaning?
- HashMap ConcurrentHashMap
Hungry?
- Project introduction: how to continuously optimize the project and upgrade the architecture? If the volume of business increases dramatically, how to ensure high availability and scalability of the system?
- How much is the order quantity and daily increase? How to do the sub-library sub-table? On what dimensions do you do it?
- It is detected that the memory of the JVM is greater than the memory of the XMX configuration that configured the JVM. One of the three machines has this phenomenon. How to explain it?
- How to solve Redis hot key?
- Why does Kafka perform so well?
- OOM scene analysis?
- How is MySQL Cluster deployed, master/slave synchronization?
- How to set which GC mode to use? What are the GC collectors of different ages?
- How to check the high CPU on line
- New features for JDK 1.8
- BIO \ NIO
- How does MQ guarantee message reliability?
- What if the system load is too high? What is the problem? How to check?
- What is the Linux operating system brief introduction?
zhongtong
- The JVM is introduced
- The JMM model
- What are the GC Roots?
- Experience with JVM tuning?
- Thread pool considerations, exception handling
- How does distributed locking work?
- How does Redis persist? High availability?
- How does the RPC framework work?
- Interface calls slow down troubleshooting
- Business system architecture, business volume
- Database design, optimization scheme
Fish bubble (heart)
- More successful projects
- How is settlement realized?
- Unified cashier design?
- RocketMQ is different from Kafka.
- How does Kafka news flow from production to consumption?
- HashMap Hashtable Difference?
- What does thread safety mean?
- How does CAS work?
- How many ways can code lock be implemented?
- Quicksort algorithm
- Distributed lock acquisition failure handling, synchronization between threads?
- Redis Threading Model, Expiration Mechanism, Elimination Strategy?
- Thread pool parameters, usage scenarios, parameter setting analysis?
- MySQL storage engine, index structure, sub – library sub – table
- Scene problem: design a system to grab a red envelope
Java interview questions
JAVA interview question, needClick here to