Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the main difference between hash table and Dictionary?

Answers were Sorted based on User's Feedback



What is the main difference between hash table and Dictionary?..

Answer / lakshmi maddala

Dictionary and Hash table are collection of data structure to hold data as key/value pairs.
Dictionary is generic type, hash table is not
We can't use dictionary with web services.
In .NET hash table is thread safe for use by multiple reader thread and a single writing thread, while in dictionary public static members are thread safe, but any instance members are not guaranteed to be thread safe.

Is This Answer Correct ?    15 Yes 2 No

What is the main difference between hash table and Dictionary?..

Answer / mehdi

Dictionary is a generic type, Hashtable is not. That means
you get type safety with Dictionary, because you can't
insert any random object into it, and you don't have to
cast the values you take out.

Is This Answer Correct ?    15 Yes 3 No

What is the main difference between hash table and Dictionary?..

Answer / sunil kumar

Dictionary is a generic type, Hashtable is not. Now what that
means.You get type safety with Dictionary, because you can't
insert any random object into it, and you don't have to cast
the values you take out.
And also generic collections are a lot faster as there's no
boxing/unboxing
Again Hashtable also have to box/unbox, which may have memory
consumption as well as performance penalties.

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

Describe a Windows Service and its lifecycle ?

0 Answers   Siebel,


Explain diff. Betn dataset and recordset?

0 Answers  


You create an assembly to access data in a relational database. This assembly will be used by several ASP.NET applications on your Web server. You need to ensure that all your applications can access the assembly. Which two actions should you take (Each Answer: presents part of the solution.)? (Choose two) A . Run the Assembly Registration tool (Regasm.exe). B . Run the String Name tool (Sn.exe). C . Run the Installer tool (Intallutil.exe). D . Run the Global Assembly Cache tool (Gacutil.exe).

6 Answers   CPCL, Syntax Softtech,


How you can access the values from the Repeater control in ASP.NET?

0 Answers  


where the stored procedure are written in business logic or data acess layer?

2 Answers  


what is diffrance between response.write & response.output.write

4 Answers   CTS,


When maintaining session through sql server, what is the impact of read and write operation on session objects?

0 Answers  


Explain Factory pattern?

2 Answers   Microsoft,


Tell About Global.asax ?

3 Answers   Keane India Ltd,


Why do we need url encoding?

0 Answers  


can sn.exe can be used before gacutil.exe

2 Answers   Accenture,


How could you modify xaml content from javascript?

0 Answers  


Categories