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
What is module in project?
What is passing by reference in java?
What do you mean by Function Overloading in java?
What is data type in computer?
What is data type modifier?
What does a boolean method return?
What is the escape character in java?
Is linkedlist thread safe in java?
Can you inherit a constructor java?
How destructors are defined in java?
What is purpose of applet programming?
Explain about interrupt() method of thread class ?
How to add menushortcut to menu item?
What is bufferedwriter?
What is a native method in java programming?