CS5010-notes
week 1
lecture
- getters and setters:
1
2
3
4public class Hashtable extends Dictionary<> implements Map<>
public class HashMap extends AbstractMap<> implements Map<>multi-threaded concurrent environment
hashtable synchronized, no , so threaded safe
hashset not synchronized, multi-threaded change data together
in HashMap,null can be key
HashTable use hashCode directly
CS5010-notes
http://example.com/2023/09/12/CS5010-notes/