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

Name the namespace which is used by ado.net?

605


What is cache in asp net?

624


is gateway for sms continue connected for sending sms.how?

1918


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

693


How can we inherit a static variable?

621






What are the versions of garbage collection?

1544


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

662


Define xmlvalidatingreader class.

649


What is autopost?

626


What is server side routing?

577


What are the server controls in asp.net?

549


What are the asp.net 2.0 features?

639


How about the security in Activex DLL and Activex EXE ?

1888


What are the steps involved to fill a dataset?

657


Will session work if cookies is disabled?

625