why is Hashtable not a part of Java Collection framework? -


i work in non multi threaded environment go hashmap instead of hashtable. know difference between both , know hashtbale introduced way before java collection framework introduced. if go through hashtable source code can find

public class hashtable<k,v> extends dictionary<k,v> implements map<k,v>, cloneable, java.io.serializable {... 

my point hashtable introduced way before java collection framework(so way before map introduced). since hashtable implements map, hashtable implementation has been modified.my questions why hashtable not part of java collection framework when map is?

hashtable introduced part of java 1.0 didn't use map. in version 1.2, changed implement map , hence, became part of collections framework. http://docs.oracle.com/javase/7/docs/api/java/util/hashtable.html


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -