GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 19 of 507    Print  
Differences between HashList and HashMap, Set and List

  
Total Answers and Comments: 5 Last Update: June 02, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 26, 2005 06:56:20   
Ashutosh Gupta        

RE: Differences between HashList and HashMap, Set and List
Hashtable is synchronised and Hashmap is not.
List allow duplicate entries but Set does not allow.

 
Is this answer useful? Yes | No
August 04, 2005 06:08:40   
Srinivasa Reddy        

RE: Differences between HashList and HashMap, Set and List
Hashmap allows null values as key but Hashtable does not.
List can store ordered elements and duplicates.
Set can't allow duplecates and the order is unordered.

 
Is this answer useful? Yes | No
September 01, 2005 08:30:20   
Pavan        

RE: Differences between HashList and HashMap, Set and List
HashMap is same as HashTable except that it is not Synchronized and allow null values.
List is an ordered collection and it allow nulls and duplicates in it. Set doesn't allow duplicates it may allow nulls.

I am not getting what is HashList here.

 
Is this answer useful? Yes | No
September 29, 2005 06:52:03   
kuriakose        

RE: Differences between HashList and HashMap, Set an...

HashList is a data structure storing objects in a hash table and a list.it is a combination of hashmap and doubly linked list. acess will be faster. HashMap is hash table implementation of map interface it is same as HashTable except that it is unsynchronized and allow null values. List is an ordered collection and it allow nulls and duplicates in it. positional acess is possible. Set is a collection that doesn't allow duplicates it may allow at most one null element. same as our mathematical set.


 
Is this answer useful? Yes | No
June 02, 2008 04:37:06   
kayalsuku Member Since: June 2008   Contribution: 2    

RE: Differences between HashList and HashMap, Set and List

HashMap is an unordered and unsorted map. Allow one null key and many null values.

Lists are collections that maintain their elements in order and can contain duplicates.

Set interface do not allow duplicate elements. A set can contain at most one null value.A Set is an unordered collection of distinct objects

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape