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 identifier in java?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is starvation?
Can we call thread start () twice?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
Is java an ide?
What are variable names?
Do loops java?
How do you bind variables?
What is floor in java?
When a byte datatype is used?
What are the differences between this and super keyword?
What is data type in java?
What do you mean by stream pipelining in java 8?
What are the advantages of user defined functions?