Collections Framework

Collections Framework

Sir, We know that both HashMap & Hashtable is using for same purposes i.e Used for storing keys-values pair. But there is some difference between this two class that are 1)Hashtable is synchronized but HashMap not. 2)Hashtable doesn't contain null but HashMap can. My question is why Hashtable does not contain null? Give me some sufficient points so i can understand properly.

View Answers

August 5, 2011 at 12:15 PM

Because hashtable is synchronized.









Related Tutorials/Questions & Answers:
Collections Framework
Collections Framework  Sir, We know that both HashMap & Hashtable is using for same purposes i.e Used for storing keys-values pair. But there is some difference between this two class that are 1)Hashtable is synchronized
Introduction to Collections Framework
Introduction to Collections Framework       Collections Framework: The Collections... and manipulating the groups of data into a single unit. The collections framework
Advertisements
Collections Framework
The Collections Framework provides a well-designed set of interfaces.... The collections framework is a unified architecture which is used to represent and manipulate collections. The framework allows the collections to get manipulated
Collections Framework
Collections Framework       Java provides the Collections Framework. In the Collection Framework... the duplication of the value or objects. Set is the interface of the collections framework
Collections
Collections  Hi, Please send a study material on collections.../java/jdk6/introduction-collections-api.shtml http://www.roseindia.net/javacodeexamples/index.shtml http://www.devmanuals.com/tutorials/java/collections/index.html
collections
collections  in collections can we perform binarysearch on arraylist elements without sorting them
collections
collections  why we need collections.when we will use collections in our applications
Collections Framework Enhancements
Collections Framework Enhancements       In Collection framework, we are able to improve the performance hashing function that is used by java.util.HashMap.
Collections in Java
Collections in Java are data-structures primarily defined through a set of classes and interface and used by Java professionals. Some collections in Java that are defined in Java collection framework are: Vectors, ArrayList, HashMap
Hibernate Criteria With Collections Example
Hibernate Criteria With Collections Example  Good code of Hibernate Criteria With Collections Example. Thanks   Example program of using Hibernate Criteria With Collections in your Java project. Check the tutorial
what is collections?
what is collections?  what is collections
Framework......
Framework......  What is framework? What is difference between framework and package
Collections API
Collections API  hello, What is the Collections API?   hiADS_TO_REPLACE_1 The Collections API is a set of classes and interfaces that support operations on collections of objects
Collections in Java
Collections in Java  What is Concurrent Hash map
Collections in Java
Collections in Java  What is Concurrent Hash map
java collections
java collections  what are all the methods and things added for collections in java5 and java6 please kindly reply me as soon as possible
Version of commons-collections>commons-collections dependency
List of Version of commons-collections>commons-collections dependency
Version of excalibur-collections>excalibur-collections dependency
List of Version of excalibur-collections>excalibur-collections dependency
Java collection API
;   Collections Framework A collections framework is used to represent and manipulate collections.        Advantages of collections framework A programmer need not to learn
Version of commons-collections>commons-collections-testframework dependency
List of Version of commons-collections>commons-collections-testframework dependency
Collection framework tutorial
Collection framework tutorial  Hi, I am learning Collection framework in Java. I want many examples of Java collection framework. Tell me the best tutorial website for learning Java Collection framework. ThanksADS_TO_REPLACE_1
collections in java
collections in java  please explain me the flow of this program..i m getting o/p as 2 1 1..y not 2 1 0..is it that if we change the i2 value,it doesnt remove. import java.util.*; public class Mapit { public static void main
collections
collections
collections
collections
collections
collections
Collections
collections
collections
collections
Collections
collections
collections
collections
collections
Collections
collections
collections
Topic 6: Collections Framework
java collections
achieve this plz without using stringtokenizer with any collections!!!  
collections - Java Interview Questions
collections   what is the way to insert map values into a set in collections
Version of com.jonlandrum>collections dependency
List of Version of com.jonlandrum>collections dependency
Version of com.twineworks>collections dependency
List of Version of com.twineworks>collections dependency
collections in java - Java Interview Questions
collections in java  What is collection
Artifacts of commons-collections
List of Artifacts of commons-collections maven depenency
Artifacts of excalibur-collections
List of Artifacts of excalibur-collections maven depenency
Maven Repository/Dependency: excalibur-collections | excalibur-collections
Maven Repository/Dependency of Group ID excalibur-collections and Artifact ID excalibur-collections. Latest version of excalibur-collections:excalibur-collections dependencies. # Version Release Date
Maven Repository/Dependency: com.googlecode.functional-collections | functional-collections
Maven Repository/Dependency of Group ID com.googlecode.functional-collections and Artifact ID functional-collections. Latest version of com.googlecode.functional-collections:functional-collections dependencies

Ads