which is better arraylist or dictionary?

Answers were Sorted based on User's Feedback



which is better arraylist or dictionary?..

Answer / guest

dictionary

Is This Answer Correct ?    6 Yes 0 No

which is better arraylist or dictionary?..

Answer / lavanya

arraylist accepts any type of object. when we create an
arraylist it allows duplicate values.
in dictionary it maintains key and value which is specific
type (i.e, either its int or string or any datatype)
it will not allow duplicates.
so dictionary is better in some requirements.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

0 Answers  


what is publisher?

0 Answers   Microsoft,


What are app services?

0 Answers  


What is difference between masterpage and user control, what is the objective of master page when we had user control in .NET 1.1 version

3 Answers   DELL, Soham,


i have one gridview contains edititemtemplate(which contains update and cancel buttons) and i have one item template (contains edit button) i want the code for update and cancelbuttons in edit item template and i want the code for edit button in itemtemplate. please help me

4 Answers  






Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form

3 Answers   Syntax Softtech,


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

0 Answers  


Where is the view state data stored in asp net?

0 Answers  


what is the jit? what is the type of jit and purpose of it>

2 Answers   Honeywell,


Securitywise What are the Enhancements in 2.0?

0 Answers   Microsoft,


Will the asp.net validators run in server side or client side?

0 Answers  


What is http post action?

0 Answers  


Categories