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
How to create com object in Java?
How do you compare characters in java?
How do you override a private method in java?
What is the difference between menuitem and checkboxmenu item?
What is final modifier?
What are java packages? What's the significance of packages?
What is externalizable?
What are the main uses of this keyword?
How transient variable is different from volatile variable?
What is flag in python?
When is the finalize() called?
How will you initialize an Applet?
Explain differences between checked and unchecked exceptions in java?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Explain methods specific to list interface?