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
What is a boolean in java?
How many ways can we create the string object?
Can you access non static variable in static context?
What is the java project architecture?
What is the concatenation operator in java?
What is the purpose of a parameter?
What is the Scope of Static Variable?
What are the special characters?
What are the difference between string, string builder, and string buffer in java?
What is the program development process?
Can you have two constructors in java?
How do I find and replace in word?
What are methods of a class?
Is double bigger than float?
How to change value in arraylist java?