Difference between array and arraylist.
Answer Posted / vinod agarwal
Array:array is the one which can save similar data typed
elements.
And the size is limited.
Arraylist:it is also a type of array in which we can extend
size
dynamically.
syntax:
ArrayList ar=new ArrayList();
where ArrayList is a class
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What type of variable is error flag?
what is use of functional interface in java 8?
What is byte value?
Is set sorted in java?
What are the benefits of immutable objects?
Why is stringbuffer thread safe?
How to sort elements in a parallel array in java?
How big is a pointer?
what is the purpose of using rmisecuritymanager in rmi?
Is array serializable java?
What is the symbol for average?
What is abstract class? Explain
Can you override static methods?
What are three types of loops in java?
What is the purpose of stub and skeleton?