File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
src/main/java/com/algorithm/study/demo/algorithm Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 99 - [ ArrayList和LinkedList有什么区别。] ( https://blog.csdn.net/seulzz/article/details/77905779 )
1010 - [ 讲讲类的实例化顺序,比如父类静态数据,构造函数,字段,子类静态数据,构造函数,字段,当new的时候,他们的执行顺序。] ( https://blog.csdn.net/justloveyou_/article/details/72466416 )
1111 - [ 什么是HashMap?] ( https://mp.weixin.qq.com/s/SZqJBLRVIT-Y4SqGoVzP9g )
12- - 用过哪些Map类,都有什么区别,HashMap是线程安全的吗,并发下使用的Map是什么,他们内部原理分别是什么,比如存储方式,hashcode,扩容,默认容量等。
13- - JAVA8的ConcurrentHashMap为什么放弃了分段锁,有什么问题吗,如果你来设计,你如何设计。
14- - 有没有有顺序的Map实现类,如果有,他们是怎么保证有序的。
12+ - [ 用过哪些Map类,都有什么区别] ( https://blog.csdn.net/qq_30683329/article/details/80455779 )
13+ - [ JAVA8的ConcurrentHashMap为什么放弃了分段锁,有什么问题吗,如果你来设计,你如何设计。] ( http://www.importnew.com/28263.html )
14+ - [ HashMap, ConcurrentHashMap 原理] ( https://mp.weixin.qq.com/s/QggmWkrgYrNtVkdSKYuRfg )
15+ - [ 有没有有顺序的Map实现类,如果有,他们是怎么保证有序的。] ( https://www.jianshu.com/p/07cceede7b03 )
1516 - 抽象类和接口的区别,类可以继承多个类么,接口可以继承多个接口么,类可以实现多个接口么。
1617 - [ IO模型有哪些,讲讲你理解的nio ,他和bio,aio的区别是啥,谈谈reactor模型。] ( https://www.cnblogs.com/javalyy/p/8882066.html )
1718 - [ 反射的原理,反射创建类实例的三种方式是什么。] ( http://blog.51cto.com/4247649/2109128 )
241242 - MQ的消息延迟了怎么处理,消息可以设置过期时间么,过期了你们一般怎么处理。
242243### 缓存
243244 - [ Redis的高并发和快速原因] ( https://mp.weixin.qq.com/s/HuwgTvNtmHJ9tpF7V53opg )
244- - 常见的缓存策略有哪些,如何做到缓存(比如redis)与DB里的数据一致性,你们项目中用到了
245+ - [ 常见的缓存策略有哪些,如何做到缓存(比如redis)与DB里的数据一致性,你们项目中用到了] ( https://mp.weixin.qq.com/s/yQjTddLWy-oSYPYxyGVeKw )
245246 - 什么缓存系统,如何设计的。
246247 - [ 如何防止缓存击穿和雪崩。] ( https://mp.weixin.qq.com/s/SQQy6NKvoAgIaeAjzkRpDw )
247248 - 缓存数据过期后的更新如何设计。
Original file line number Diff line number Diff line change @@ -12,5 +12,14 @@ public static void main(String[] args) {
1212 System .out .println (redPacket );
1313 }
1414 System .out .println ((int )(Math .random ()*0.9 +0.1 ));
15+
16+ System .out .println ((3 +1 )%8 );
17+ System .out .println (f (9 ));
18+ }
19+
20+ public static int f (int i ){
21+ if (i ==1 ) return 1 ;
22+ System .out .println (i );
23+ return f (i -1 )+1 ;
1524 }
1625}
You can’t perform that action at this time.
0 commit comments