Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
HashMap & Hashtable both use hashing mechanism and store the entries as key value pairs.The difference between them is hashmap can store one null key & multiple null values,but hashtable doesn't allow anything(either a key or value) which is null.One more difference is hashtable is synchronized where as hashmap is not.Deciding the better one depends on ur design.
Can u please explain whats do u mean by "HashMap can hold one null key and multiple null values" ?? Whats the advantage of synchronised HashTable? When can v use it?
Since Hashtable is synchronized it can be used safely in a multithreaded program guaranteeing exclusivity of access to a thread that holds its lock. HashMap does not have this functionality.