which is better arraylist or dictionary?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is aspect-oriented programming?

629


How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?

2344


Write a code for passing ArrayList in Web API?

1151


What are the different types of sessions in asp.net?

573


What is state management in asp.net with example?

565






What is the difference between ldap and active directory?

624


Explain about asp.net state management?

696


Diff between web user control and web custom control?

604


How to reduce the width of textbox in editcommandcolumn of datagrid?

616


What is asp net theme?

623


What are the versions of garbage collection?

1544


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

731


Define static member?

634


i want the asp.net technical questions and answeres

1675


What is the size of Get method and how much data it can store?

678