2020 latest Alipay advanced Java on-site interview 37 questions: page lock + deadlock + cluster + avalanche + load, etc. (the interview questions of many large companies at the end of the article are included)

Alipay advanced Java on-site interview 37 questions: page lock + deadlock + cluster + avalanche + load, etc.

 

Alipay on-site three-sided interview questions, with benefits at the end of the article: Answers to 88 questions in the Ali classic interview
 

01 Alipay side

  1. Introduce yourself.
  2. What are the core designs involved in the project
  3. ArrayList and LinkedList bottom layer
  4. HashMap and thread-safe ConcurrentHashMap, and their advantages and disadvantages
  5. How does Java achieve thread safety
  6. Which is better, Synchronized or Lock?
  7. How is the get() method in HashMap implemented?
  8. What scenarios can HashMap be used in?
  9. JVM, garbage collection mechanism, memory division, etc.
  10. SQL optimization, commonly used indexes?
  11. What questions need to be asked.

02 Alipay two sides

  1. Without self-introduction, I just asked which Java development-related projects I have done.
  2. Which technologies are you familiar with?
  3. Multithreaded state diagram, how does the state flow?
  4. Deadlock, deadlock cause
  5. Page lock, optimistic lock, pessimistic lock?
  6. How does optimistic locking ensure thread safety?
  7. Have you used the thread pool, the corresponding benefits, how to use it?
  8. Two 10G files contain some URLs and the memory is only 1G. How to merge these two files to find the same URL?
  9. More than 1000 concurrent threads, 10 machines, 4 cores per machine, design thread pool size.
  10. Code question: Two ordered arrays, there are duplicate numbers in the arrays, merge them into an ordered array, and remove duplicate numbers.
  11. Talk about your strengths.

03  Alipay three sides

  1. What did jvm performance tuning do
  2. How to do database performance tuning
  3. Principles of distributed systems: CAP, eventual consistency, idempotent operations, etc.
  4. How does our system support a large number of requests under high concurrency
  5. How the cluster synchronizes session state
  6. Commonly used NOSQL, have you compared it?
  7. Under what circumstances will an avalanche occur, and how to deal with it?
  8. Principles of load balancing
  9. Database transaction attributes
  10. When communicating with colleagues, how to resolve conflicts?
  11. What do you feel lacking in your work?
  12. Do you have any questions?
  13. Expect salary?
  14. Why leave the current company?

The above are the three questions on Alipay's site, and the following are the latest questions and answers of the 2020 Java required exams.


Java required exam questions and answers from many top-tier manufacturers

 

 

Answer method:

Add the assistant WeChat in the picture below to get it

 

 

Guess you like

Origin blog.csdn.net/sinat_37903468/article/details/108951064