Difference between array and arraylist.
Answer Posted / bhavani
ARRAY:collection of same data items.
2.array is always of fixed size.
3.initializing an array is too long,then it results in wastage
of memory in heap.
ARRAYLIST : Collection of different data objects.
2.Dynamic in nature.
3.automatic resizing of the list.
4.methods used is:add,remove,insert,clear,sort,reverse....
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do I stop concurrentmodificationexception?
Where can I find jdk in my computer?
Does variable declaration allocate memory?
Is there any limitation of using inheritance?
What is the difference between char and char *?
What is diamond operator in java?
What are the three best choices for a development environment?
Differentiate between class and structure.
why Java does not support multiple inheritances?
What are the two ways of implementing multi-threading in java?
What is nested class?
Explain when classnotfoundexception will be raised ?
What is the final class?
Is string is a data type?
What is mean by encoding?