What is the difference between array and arraylist?
what is the difference between arraylist and linkedlist?
Answer Posted / ram
array contain a similar data type and array size is fixed i.e
dynamically its size can't be changed.
but arraylist can store more then one data type and its size
can be changed dynamically.
one major difference is that,array used to store primitive
data type(i.e. int,char etc) while arraylist is used to
store objects.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
When we should use serialization?
Which package is always imported by default?
What is an iterator interface in java programming?
Can we catch more than one exception in a single catch block?
Where is stringbuffer stored?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is string manipulation?
What is the default size of load factor in hashing based collection?
What is string intern in java?
What is jee6?
What is reverse function?
Is null a string?
What is the difference between menuitem and checkboxmenu item?
Which variable is the independent variable?
What happens if an exception is throws from an object's destructor?