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
What is an example of a constant variable?
How do you check if a number is a perfect square?
Is empty in java?
Do you know why doesn't the java library use a randomized version of quicksort?
Can a class extend 2 classes in java?
what is static import in java? Explain
What are the two environment variables that must be set in order to run any java programs?
What is meant by attribute?
What is flag in java?
What is a singleton puppy?
what is meant by abstract class?
What is rule of accessibility in java?
what is the difference between process and thread? : Java thread
explain autoboxing in java?
What is static class