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

What is cross page posting in asp net?

0 Answers  


Mention the execution process for managed code?

0 Answers  


How do u deploy ur project?

0 Answers   HCL, Microsoft,


You are creating a Web site for Your company. You receive product lists in the form of XML documents. You are creating a procedure to extract information from these XML documents according to criteria that your users will select. When a user makes a request, you want the results of these requests to be returned as quickly as possible. What should you do? A . Create an XmlDataDocument object and load it with the XML dat Use the DataSet property of the object to create a DataSet object. Use a SQL SELECT statement to extract the requested dat B . Create an XmlDataDocument object and load it with the XML data. Use the SelectNodes method of the object to extract the requested data. C . Create an XPathDocument object and load it with the XML data. Call the CreateNavigator method to create an XPathNavigator object. Call the Select method of the XPathNavigator object to run an XPath query that extracts the requested data. D . Create an XmlReader object. Use the Read method of the object to stream through the XML data and to apply an XPath expression to extract the requested data.

1 Answers   Syntax Softtech,


How can you register a custom server control to a web page?

0 Answers  






How many types of validators are there in asp net?

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,


What permissions do asp.net applications posses by default?

0 Answers  


Can session variables be accessed from code-behind?

2 Answers   Microsoft, RMS,


Explain the different types of assemblies?

0 Answers  


Which color scheme in a Repeater control can you provide alternatively?

1 Answers   Siebel,


Explain the difference between dataset and datareader.

0 Answers  


Categories