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

Explain how do you deploy your asp.net application?

668


how to write html code with ssl

1739


What is application and session in asp.net?

687


Difference between .NET and previous version?

2288


What is applicatio domain?

738


Explain the different types of directives in .net?

694


What is global.asax file used for?

749


What are the differences between code behind and code inline?

704


Which tool you have done?

1643


Is redux flux?

707


What kind of data we can store in viewstate?

779


Explain about ASP.NET?

818


What are the 3 types of web?

666


How does cookies work in asp net?

731


Explain a program using code nuggets to create a simple application? : asp.net mvc

731