1.自我介绍,了了项目
2.String,StringBuilder,StringBuffer异同点
3.来做个题,说说结果
Integer a = new Integer(5); Integer b = new Integer(5); Integer c = 5; Integer d = 5; int h = 5; Integer e = 128; Integer f = 128; int g = 128; /* a == h a == b b == c c == d e == f f == g */
4.用过了解过哪些线程池?说说看,你用过哪些
来做下这个题,说说结果
val executors2 = new ThreadPoolExecutor(1, 2, 10L, TimeUnit.SECONDS, new ArrayBlockingQueue(5)) executors2.submit(new Runnable { override def run(): Unit = { while (true) { println("1") Thread.sleep(1000) } } }) executors2.submit(new Runnable { override def run(): Unit = { while (true) { println("2") Thread.sleep(1000) } } }) executors2.shutdown()
5.三个线程并发执行,要他们顺序打印。
6.hashmap了解不,底层结构是什么?红黑树,红黑树的查询复杂度,为什么要用红黑树?
7.说说volatile,解释下线程可见性的底层原理,解释下指令重排序的底层原理
8.Spring bean的生命周期
9.Mysql底层了解不
10.反问,有什么问题
大概就这些吧,可能遗漏。
全部评论
(3) 回帖