Difference between array and arraylist.
Answer Posted / mohit
1-array is used for value type. but array list is used for reference type.
2-array is used for fixed size but aaray list is dyanamically increase at run time.
3-you can't resize an array but you can do resize the array list.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do you access command-line arguments within the code?
What’s the difference between callable and runnable?
What is difference between add() and addelement() in vector?
What is the exact difference in between Unicast and Multicast object?
Does constructor return any value?
How do you create immutable object in java?
What is the default size of arraylist in java?
Are primitives objects?
What does sizeof return?
How many characters is 2 bytes?
Write a program to print fibonacci series
What is a java string?
Difference between nested and inner classes ?
How do I start learning java?
Can one thread block the other thread?