Difference between Array and ArrayList? How Array is
benifitful than ArrayList?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / bhagwat prasad sharma
1+: array is the collection of similer types of elements having same name and sharing a common data type but array list having different data types with different name .
2+: array have predefined size we can not increase or decrease the size at run time but in array list we can do it at runtime the size problem in array is a big problem but this problem solve in array list you can change the size in array list dynamacally .
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / bala
Array:
Fixed size and it strongly type collection so it can not use boxing and unboxing.
Arraylist:
Flexible sise and it should strongly type collection.Then it allowed to store various data type.it can use boxing and unboxing so it be slowness for comparing to array
Is This Answer Correct ? | 0 Yes | 0 No |
User contro having 4 text boxes given validation controls. i want to execute validations after the button click event how it is?
You are planning the deployment of an ASP.NET application. The application uses a Visual Studio .NET component named DataAccess that will be shared with other applications on your Web server. You are using Visual Studio .NET to create a Windows Installer package. You need to deploy DataAccess and the ASP.NET application so that they can be uninstalled later of necessary. What should you do? A . Create a setup project for DataAccess. Add the ASP.NET application in a custom action. B . Create a setup project for the ASP.NET application. Create another setup project for DataAccess. C . Create a Web setup project for the ASP.NET application. Add a project output for DataAccess. D . Create a Web setup project for the ASP.NET application. Add a merge module for DataAccess.
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What types of data validation events are commonly seen in the client-side form validation?
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?
What is the difference between session object and application object?
What is difference between web config and global asax?
how many script manager controls are used in Ajax web page?
7 Answers CSC, Health Prime Services, TCS,
How to implement form based authentication in asp.net application?
What is difference between asp.net and asp?
Can you edit data in the Repeater control?