In the morning of the first week of July, WHEN I was on the subway going to the company, I suddenly received an interview call from THE HR of PINDUoduo and communicated with me whether I was interested. I expressed my interest, and we arranged the interview time for the first interview. Later, we received the formal interview notice.

Work at his former club for several years, the feeling is met bottleneck, feel slow progress in nearly a year, not used to the rapid growth of a sense of accomplishment, together with his former club business and technology are more stable, so I always want to go out to see opportunities, on the one hand, look at their own strength, on the other hand, want to be able to break through the status quo, continuing on technology progress.

—– Pinduoduo Java R & D post 1234 interview and interview questions —-

One side

  1. What components do thread pools consist of, what are they, how are they used, and what are the rejection policies
  2. Write an algorithm that traverses the tree hierarchically and outputs the levels of each layer
  3. Write a problem, backward traversal of a binary tree, non-recursive algorithm.
  4. When does a multithread deadlock occur? Write an example
  5. Let’s talk about the optimization of hashMap and concurrentHashMap in jdk1.8
  6. How are hash conflicts resolved, and if they occur, how do you find the target value in the hash table
  7. There are 1000 data in the HashMap, what is the actual number, considering load factors and capacity expansion
  8. What are the common RPCS? Corresponding differences and performance comparisons?
  9. Operating system user mode and core state switching conditions and why to switch
  10. Communication between threads, asynchronous queues, delayed message retrieval

Second interview

  1. MySQL > create primary/secondary replication
  2. MySQL index, using B+ tree index benefits
  3. How to optimize MySQL performance
  4. How does Redis cache
  5. Redis persistence operation
  6. How to use Redis to process hot data
  7. TCP three-way handshake process, if there is no third handshake what is wrong.
  8. How to implement distributed lock

On three sides

  1. Cap? What do you mean by cap
  2. Network programming niO and Netty related, Netty’s threading model, zero copy implementation
  3. Is Redis single-threaded or multi-threaded? What does Redis do with distributed clusters?
  4. What are distributed message queues (Kafka, etc.)? Have you used any? What is the specific application scenario?
  5. How and why does load balancing work? Know anything about cluster avalanches.
  6. How to realize peak clipping and current limiting in high concurrency scenarios?

All around (HR)

  1. Why did you change jobs?
  2. What are your salary expectations?
  3. How to treat overtime?
  4. How do I learn technology? Besides Java, what other technologies do I learn?
  5. What are your plans for the next few years?

Summary of questions and answers

Share over the years to collect some Java interview materials for everyone to learn, BAT essential interview questions with answers, I hope to help you forward + concern ** click here, obtain the document to receive way **

Click here to get the document collection method