一小时前的趣店研发工程师面经,热腾腾的

spring用到了哪些设计模式;

你了解的设计模式有哪些?介绍一下都有哪些应用场景;

事务的传播属性和隔离级别

虽然可重复读理论上会导致幻读,但InnoDB中采取了什么机制来避免这种情况的发生。

Redis的底层数据结构是怎么样的

写一个线程安全的懒汉式的单例模式
jvm的内存分配是怎样的
survivor To 和 from 的内存大小为什么默认是1:1

大概就是这些,答得不好,估计凉了。
#趣店##面经##Java工程师##校招#
全部评论
写一个线程安全的懒汉式的单例模式 答案: public class Singleton { private static Singleton instance; private Singleton() { } public static synchronized Singleton getInstance() { if (instance == null) { instance = new Singleton(); } return instance; } }
点赞 回复
分享
发布于 2019-10-25 12:41
对了,还问了一下jvm的GC机制。
点赞 回复
分享
发布于 2019-10-25 11:34
联想
校招火热招聘中
官网直投
感觉有点深度,但又不偏,还是比较基础的
点赞 回复
分享
发布于 2019-10-25 12:22
很基础的东西了
点赞 回复
分享
发布于 2019-10-25 16:58
可以说问的很简单了,但我投递了一分钟不到,状态立马是暂不匹配,也是很迷了。
点赞 回复
分享
发布于 2019-10-25 22:03
开了多少
点赞 回复
分享
发布于 2019-10-26 07:32
写一个线程安全的懒汉式的单例模式 双重校验锁的写法 public class Singleton { private volatile static Singleton singleton; private Singleton() { } public static Singleton getSingleton() { if (singleton == null) { synchronized (Singleton.class) { if (singleton == null) { singleton = new Singleton(); } } } return singleton; } }
点赞 回复
分享
发布于 2019-10-27 00:45

相关推荐

3 7 评论
分享
牛客网
牛客企业服务