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

Is it possible to change the index of primary key on table?

412


Explain weak typing and strong typing.

570


What are different methods of session maintenance in asp.net?

572


What is loop in asp.net?

588


How does exception management works in ASP.NET?

623






What is the procedure to handle the process request using mhpm events fired? : asp.net mvc

546


How can you use a custom controls in ASP.NET application?

552


What is asp.net web application?

534


What is cache in asp net?

540


Differentiate between a page theme and a global theme?

526


What is asp short for?

567


What is difference between session and cookies in asp net?

507


Which tool you have done?

1486


What are type/key pairs in client script registration?

568


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

593