Java Advanced Interview Questions

1 How to optimize large websites and improve access speed

2 Cache setting principle

3 Introduction to distributed transactions

4 How to reduce inventory operations to ensure repeated consumption

5 Differences between B2B, B2C, and C2C modes

6 thread pool optimization

7 How to ensure consistency between cache and database? It is how cache and database updates are transactional

8 If the user maliciously requests non-existent goods, how to solve the problem

9 How to implement distributed transactions and how to solve the problem of repeated consumption

10 springboot, how to communicate between services? Dubbo, zookeeper

11, Design patterns : singleton, dynamic proxy, builder pattern

12. The difference between sleep and wait , have you figured it out?

13. Implement the producer consumption model

14, RPC , RPC communication principle

15, zk principle

16, How to add a new interface? adapter mode

17, How to use the thread pool, CountdownLatch, future

18. How to realize the sub-table? Discrete sharding (re- hash ), continuous sharding

19, project structure, advantages

20. What does the architecture focus on? What do full stack engineers think about future development plans?

21, B+ tree, why is redis high performance and fast?

22. The difference between the underlying implementation of redis and mysql memory mode database, which is more efficient?

23, introduce epoll

24, TCP three-way handshake, four-way wave detailed process

25, nagle algorithm, what is the connection between epoll model and nagle algorithm

26. What do you think about blockchain and AI ?

27, familiar with what: jvm, thread memory model

28. How to manage distributed services

29, the concept of idempotency of interfaces

30, How to solve the version conflict in Maven

31, JVM garbage collection mechanism, when to trigger MinorGC and other operations

32. Memory recycling strategy of the new generation and the old generation

33. Proportional allocation of Eden and Survivor

34, the difference between Synchronized and Lock

35, project architecture, Java foundation, JVM , concurrent programming, database operations, middleware technology, Dubbo service governance framework

36, JVM memory generation, Java8 memory generation improvement, in-depth analysis of Classloader, parent delegation mechanism, JVM compilation optimization, understanding of Java memory model, and its application of instruction reordering in concurrency, memory fence, etc.

37. The concurrency problem of HashMap, the application of LinkedHashMap , the design pattern used at work, and how to apply it

38, TCP/IP protocol, long connection and short link, time complexity of multi-way merging, mapreduce process, massive url deduplication problem, JavaNio use, principle of reverse sorting index, understanding of word segmentation technology

39. How does the message middleware solve the problem of message loss, how to deal with the failure of Dubbo 's service request, whether the reconnection mechanism will cause errors, the understanding of distributed transactions, and in-depth analysis of several design patterns

40. Http request message format, Spring 's transaction implementation principle, several ways of Redis persistence, Redis cache invalidation strategy, typical TOP k problem, how to sort and process SQL operations (mainly index and aggregation ) for massive login logs Function application), how a large amount of user data is sorted and deduplicated in memory, how the addition and deletion of cache machines have the least impact on the system, and the implementation of consistent hashing .

__

Sorting / dynamic agent and principle / cas, java which classes are used, how to prevent ABA / sleep | wait / distributed lock pessimistic and optimistic lock

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324647121&siteId=291194637