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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Model-View-View Model?

605


Can we use MSSql as backend in asp.net...if yes then How.?

581


Explain asp.net application life cycle?

546


What is x xss protection?

564


Why cyclomatic complexity is important?

555






Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc

543


If you are using components in your application, how can you handle exceptions raised in a component?

2075


What is another word for redirect?

506


How can we communicate with each server in N-tier Architecture? and what are the methods?

1787


Describe the .net base class library.

529


Explain server-side scripting and client-side scripting.

512


Which browsers support the xmlhttprequest object?

515


What is cache in asp net?

529


What do you mean by role-based security?

564


How can you handle errors in Web API?

589