What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5866 |  Welcome, Guest!   Register  Login
 Home > Forums > Ask Interview Questions > Diff b/w data dictionary and hash table? ...
Hariinakoti

Diff b/w data dictionary and hash table?

Replies: 5 | Posted by: Hariinakoti on 5/3/2012 | Category: Ask Interview Questions Forums | Views: 700 | Status: [Member] | Points: 10  


Hi,
waht is the Diff b/w data dictionary and hash table?

Thanks & Regards
Hari


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/3/2012 7:29:54 AM
Level: Silver | Status: [Member] | Points: 25

Dictionary is used for specified type of variable...

Dim dictionary As New Dictionary(Of String, Integer )


But Hash Table we need not specify any data types, we store combine of all data types(int, string,...)

Dim AddHash As New Hashtable


Regards,
Singaravel M

Hariinakoti, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Hariinakoti
Hariinakoti  
Posted on: 5/3/2012 7:35:06 AM
Level: Starter | Status: [Member] | Points: 25

@sakthi
plz tell me clearly


Thanks & Regards
Hari

Hariinakoti, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/3/2012 7:46:12 AM
Level: Silver | Status: [Member] | Points: 50

Resolved

Dictionary

Dim dictionary As New Dictionary(Of String, Integer )


The above is example of Dictionary..
u can add new values as key->String and Value->Integer

Hashtable


Dim Hash_Table_Name As New Hashtable


In hash Table key and values are not considered data types..

ex for hash table.

Hash_Table_Name.Add("1","One")

Hash_Table_Name.Add("number","54766")


Regards,
Singaravel M

Hariinakoti, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Muhsinathk
Muhsinathk  
Posted on: 9/17/2012 7:59:11 AM
Level: Bronze | Status: [Member] | Points: 25

Dictionary

1)Dictionary is a generic type.
2)Dictionary public static members are thread safe, but any instance members are not guaranteed to be thread safe.
3)we can not use dictionary (generics) with web services.
3)Dictionary gives performance improvement while working with value types compared to hashtable
4)Dictionaty is always faster compare to ArrayList since it maintains indexes and also secure since data is encrypted..

Hashtable

1)Hashtable is not a generic type.
2) Hashtable is thread safe for use by multiple reader threads and a single writing thread.
3)HashTable stored data in form of DictionaryEntry class which holds key and value in form of object
4)Hashtable is an untyped associative container that uses DictionaryEntry class to return results of enumeration through its key-value pairs.

Hariinakoti, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Muhsinathk
Muhsinathk  
Posted on: 9/17/2012 8:00:12 AM
Level: Bronze | Status: [Member] | Points: 25

Please mark as answer if it helpful to you...That helps others who search the same..

Hariinakoti, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/26/2013 12:50:10 AM