哈希表。姓名历史。为什么不HashTable? [英] Hashtable. Name history. Why not HashTable?

查看:193
本文介绍了哈希表。姓名历史。为什么不HashTable?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道:

ArrayList;
LinkedList;
TreeMap

和其他......以及CamelCase格式的所有名称,但为什么 Hashtable ,而不是 HashTable

and other... and all names in CamelCase format, but why Hashtable, not HashTable?

这是无原则的问题,只是想知道:)

it is unprincipled question, just wondering :)

推荐答案

Hashtable 是在Java v1中创建的。集合的一致命名约定稍后在Java2中建立,当其他类作为全新Java Collection Framework的一部分发布时。

Hashtable was created in Java v1. The consistent naming conventions for collections were established later, in Java2, when the other classes were published as part of the brand new Java Collection Framework.

哪个btw使 Hashtable 已过时,因此不应在新代码中使用。

Which btw made Hashtable obsolete, so it should not be used in new code.

这篇关于哈希表。姓名历史。为什么不HashTable?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆