Difference between Array and ArrayList? How Array is
benifitful than ArrayList?

Answer Posted / vanitha g

1)An array can be of any data type and contain one data
type while array list can contain any data type in the form
of the object.

2)With array you can not dynamically increase or decrease
the size of array dynamically. You must the define the size
of the array. You can change the size of the array with
redim statement but still you have to define type. While
with array list you can make list of any sizes. When a
element or object is added to array list it size is
automatically increase the capacity of the array list.

Is This Answer Correct ?    27 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the event handlers that can be included in the Global.asax file?

575


What are validator? Name the validation controls in asp.net?

498


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

520


Explain authorization levels in .net ?

604


Where the cookie value is stored?

509






What are the 3 types of web?

504


What is the main differences between asp and asp.net?

519


What are the disadvantages of view state?

592


Are there resources online with tips on asp to asp.net conversions?

542


What are the benefits of Razor View?

531


Where would you use an ihttpmodule, and what are the limitations of any?

547


Do I need to have the latest version of windows media player installed?

511


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

504


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

1778


Explain a program using razor view engine to create a simple application? : asp.net mvc

492