简体   繁体   中英

Hashtable. Name history. Why not HashTable?

we know:

ArrayList;
LinkedList;
TreeMap

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

it is unprincipled question, just wondering :)

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.

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

It's a typo. Same as Cloneable (should be Clonable). Or Referer (should be Referrer)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM