Difference between array and arraylist.

Answer Posted / mohit

1-array is used for value type. but array list is used for reference type.
2-array is used for fixed size but aaray list is dyanamically increase at run time.
3-you can't resize an array but you can do resize the array list.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean in java?

571


How many ways can we create the string object?

524


Can you access non static variable in static context?

549


What is the java project architecture?

1776


What is the concatenation operator in java?

568






What is the purpose of a parameter?

518


What is the Scope of Static Variable?

723


What are the special characters?

529


What are the difference between string, string builder, and string buffer in java?

543


What is the program development process?

554


Can you have two constructors in java?

489


How do I find and replace in word?

528


What are methods of a class?

536


Is double bigger than float?

533


How to change value in arraylist java?

489