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
can java object be locked down for exclusive use by a given thread? : Java thread
Can we override constructor?
What are the kinds of polymorphism?
What is the difference between static binding and dynamic binding?
How can you set an applet’s height and width as a percentage?
What are local variables?
What does a void function return?
How to access arraylist elements in java?
How is final different from finally and finalize?
Is empty set an element of empty set?
Can you declare the main method as final?
Print Vertical traversal of a Binary Tree.
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
what is singleton in java?
Which variables are stored in heap?