What is the difference between Hashtable and HashMap in Java?
The main difference is that HashMap allows null keys and values, while Hashtable does not. Also, HashMap is not synchronized, but Hashtable is.
Well done! You've captured the key differences accurately.
Can you explain why HashMap allows null values but Hashtable does not?