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 the set interface in java programming?
What's the difference between comparison done by equals method and == operator?
what is interface in java? Explain
What is defined as false sharing in the context of multithreading?
Which programming language is best in future?
What is the use of jtable?
How many types of the indexof method are there for strings?
How to create packages in java?
What is temp in java?
Explain the difference between the public, private, final, protected, and default modifiers?
What are triggers in DB? Explain their types. How do they work?
What is the difference between int and integer in java?
What is polymorphism and what are the types of it?
Explain the significance of listiterator.
How can we use primitive data types as objects?