preface

jingdong

The interview content,

One side

  1. Talk about Memory management in Java

  2. Talk about how to locate the problem if the server GC frequently?

  3. Talk about the Spring

  4. Talk about the difference between synchronized and lock

  5. What’s the difference between a String, a StringBuffer, and a StringBuilder?

  6. What is thread safety

Second interview

  1. What is the difference between Redis and MySQL?
  2. Persistent types of Redis
  3. Redis does cache, how to extend? What if there are only two hotspots in the cache?

See: Java– Cache hotspot data, least recently used algorithm

  1. Types of Maven repositories
  2. At the JVM level, the process of creating and reclaiming objects
  3. Memory is mainly divided into which areas, where the attributes of the class are placed
  4. Application scenarios of message queues
  5. What is the difference between point-to-point and publish-subscribe in message queues?

For details, see the difference between point-to-point and publish-subscribe in message queues

  1. How does a message queue ensure that messages are consumed properly
  2. Design a second kill system, how to ensure that users see the real-time inventory situation?
  3. How can Quartz avoid repeating tasks in distributed scenarios?
  4. Design a Map that guarantees that when the set() method is called, an exception will be thrown if the Key already exists, and that the method is thread-safe.
  5. What questions should you consider when designing a site with a large number of visitors?
  6. How many timeouts can HTTP have?
  7. What are the cross-domain solutions?
  8. What attributes do you consider when choosing a server?

Update time

Release date: August 27, 2018