Is there any special reason for having the class names java.util.Hashtable with a small “t” instead of java.util.HashTable?? and also the class java.awt.Checkbox also has small “b”. Why is this violation of naming convention?? Almost spent two hours trying to figure out why the compiler didn’t fine java.util.HashTable. Are there any other classes that violate the naming convention??
Is there any special reason for having the class names java.util.Hashtable with a small
Share
Because it is not agreed whether “hashtable” and “checkbox” aren’t single words – they might be viewed as such. See wikipedia about checkbox.
But “hashtable” is quite rarer than “Hash table”, we can simply say “they got it wrong”. Luckily, they fixed it with
HashMap, and now you should almost never useHashtable