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 return data type?
What are heap memory and stack memory and what are memory tables.
What is an exception? difference between Checked and Unchecked exception in Java
What restrictions are placed on method overloading in java programming?
Why 1 is not a prime number?
What is a pattern what is an anti pattern?
Can final class have constructor?
what is aggregation in java?
What are white spaces in java?
What is difference between array and arraylist in java?
What are java packages?
Is integer passed by reference in java?
How to do a true java ping from windows?
Is an object null?
Can we have more than one package statement in the source file?