会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Riddle
博客园
首页
新随笔
联系
订阅
管理
2019年5月9日
HashMap源码分析(上)
摘要: HashMap是一种散列表,通过数组加链表的方式实现。在JDK1.8版本后新增加了红黑树结构来提高效率。 HashMap HashMap是Java的Map接口的一种基础哈希表实现。它提供了Map的所有操作,并且支持以null为key或value。(除了是非同步的以及支持null以外,HashMap与
阅读全文
posted @ 2019-05-09 11:05 Riddle
阅读(461)
评论(0)
推荐(0)
2017年9月8日
Java Integer常量池——IntegerCache内部类
摘要: 猜一下下面代码的结果,是true true true 还是false false false? Integer a = 10; Integer b = 10; System.out.println(a.equals(b)); a = 100; b = 100; System.out.println(a.equals(b)); a = 1000; b = 1000; System.out.println(a.equals(b));
阅读全文
posted @ 2017-09-08 16:26 Riddle
阅读(385)
评论(0)
推荐(0)
2017年8月30日
find the Nth highest salary(寻找第N高薪水)
摘要: Suppose that you are given the following simple database table called Employee that has 2 columns named Employee ID and Salary: Write a SQL query to g
阅读全文
posted @ 2017-08-30 19:19 Riddle
阅读(312)
评论(0)
推荐(0)
公告