Alipay Senior Java Interview Questions – First, Second, and Third Rounds
A comprehensive collection of Alipay senior Java interview questions covering JVM garbage collection, concurrency, J.U.C utilities, performance tuning, data structures, MySQL indexing, distributed systems, Redis clustering, middleware, and high‑concurrency solutions for preparation.
Alipay Senior Java Interview – First Round
When does the old generation in the JVM trigger GC?
Steps of CMS garbage collection and differences between G1 and CMS?
Which phases of CMS are concurrent and which are serial?
Discuss Java thread pool and the meaning of its parameters.
Explain J.U.C package source components such as CAS, AQS, ConcurrentHashMap, ThreadLocal, CyclicBarrier, CountDownLatch, Atom, blocking queues, etc.
Methods and steps for JVM performance tuning and key configuration parameters.
Java thread locks and their advantages/disadvantages.
Implementation principle of HashMap and changes in JDK 1.8.
Draw a complete multithread state diagram.
Sorting algorithms (Shell, Merge, Quick) implementations and complexities.
Explain red‑black tree and insertion time complexity.
How to avoid phantom reads in MySQL under RR isolation level.
Differences, advantages, and disadvantages of normalized vs denormalized schemas.
Alipay Senior Java Interview – Second Round
MySQL index types and what is a covering index.
How to obtain slow SQL in MySQL and ways to resolve slow queries.
Configuration and working principle of MySQL master‑slave replication.
Optimistic vs pessimistic locks, row vs table locks, shared vs exclusive locks (how to manually add shared/exclusive locks in InnoDB).
Principles and scenarios of deadlock detection.
Discussion of ACID properties of transactions.
Transaction recovery mechanisms when the database crashes.
Various distributed global unique ID generation methods and their pros/cons.
Different distributed session solutions, typical choice and reasons.
Understanding of Redis consistent hashing algorithm.
Alipay Senior Java Interview – Third Round
Redis cluster solutions and their options.
How to achieve session sharing in a cluster.
Differences between Memcached and Redis.
Experience with Alibaba open‑source middleware and performance comparison.
Server avalanche scenarios, causes, and design of mitigation strategies.
Architecture and design principles of Dubbo.
Differences between Docker and JVM.
High‑concurrency solutions and priority steps.
The list is intended as a reference for the most comprehensive 2018 Alibaba senior Java interview topics, covering Redis, Spring, multithreading, JVM, and more.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Mike Chen's Internet Architecture
Over ten years of BAT architecture experience, shared generously!
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
