Java核心技术一其他(Java core technology I others)

1.分布式CAP, BASE知道吗?

CAP原则又称CAP定理,指的是在一个分布式系统中,Consistency(一致性)、 Availability(可用性)、Partition tolerance(分区容错性),三者不可得兼,只能至多满足其中2个。

BASE 是 Basically Available(基本可用)、Soft state(软状态)和 Eventually consistent (最终一致性),BASE理论是对CAP中AP的一个扩展,除非特定的事务类型,大多数的系统都是AP系统,满足用户的可用性和服务的可用性,C只需达到最终一致性即可。




4.分库分表做过吗? 什么业务场景? 分库分表带来的问题?





9.线程池的核心参数有哪些? 他们的关系

10.NIO应用场景, Netty用过吗?


12. 什么是内存泄漏, 内存溢出, 如何解决?

13. Spring的源码有读过吗?

14.讲一下Dubbo consumer接口调用流程


16.常用的java 设计模式有哪些.

17.sleep 和 wait 的区别, 应用场景

18.说一下脏读, 不可重复读, 幻读



21.JVM调优, JVM分配的内存多少合适?

22.项目中用到了哪些 Spring cloud的组件

23.consumer使用Fegin中, 哪个应用负责获取provider服务注册信息及默认路由算法

24.算法题: 最长上升子序列

25.算法题: 快速排序

26.算法题: 接雨水

27.如何学习一门新的技术, 讲一讲


1. Do you know distributed cap and base?

The cap principle, also known as the cap theorem, refers to that in a distributed system, consistency, availability and partition tolerance cannot be combined, and only two of them can be satisfied at most.

Base is basically available, soft state and eventually consistent. Base theory is an extension of AP in cap. Unless there is a specific transaction type, most systems are AP systems to meet the user’s availability and service availability, and C only needs to achieve the final consistency.

Distributed system must know cap and base theory

2. What are two-stage submission and three-stage submission? What are the differences, advantages and disadvantages between the two

3. MySQL database optimization scheme

4. Have you done sub warehouse and sub table? What business scenario? Problems caused by sub database and sub table?

5. Disadvantages of anti paradigm design?

6. Java reflection mechanism

7. Do you understand escape analysis?


9. What are the core parameters of thread pool? Their relationship

10. NiO application scenario, has netty ever used it?

11. Understanding of spring source code

12. What are memory leaks and memory overflows and how to solve them?

13. Have you read the source code of spring?

14.讲一下Dubbo consumer接口调用流程

15. Implementation principle of Java serialization

16. What are the common Java design patterns

17. Differences between sleep and wait, application scenarios

18. Talk about dirty reading. Don’t repeat it. Unreal reading

19. Propagation properties of transactions

20. Have you used timed tasks and how are batch tasks allocated

21. For JVM tuning, how much memory is allocated by the JVM?

22. Which spring cloud components are used in the project

23. Which application in fegin is used by the consumer to obtain the provider service registration information and the default routing algorithm

24. Algorithm problem: Longest ascending subsequence

25. Algorithm problem: quick sorting

26. Algorithm problem: connected to rainwater

27. Talk about how to learn a new technology