Difference between array and arraylist.
Answer Posted / pooja
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 ? | 23 Yes | 10 No |
Post New Answer View All Answers
Which class should you use to obtain design information about an object in java programming?
What is final class?
What is a functional interface?
what do you mean by stream pipelining in java 8? Explain
Why is the type for real numbers called double?
What does ide stand for?
Difference between Linked list and Queue?
What is the importance of finally block in exception handling?
How to overcome the exception object reference not set to an instance of object?
What is the difference between error and an exception?
Which types of exceptions are caught at compile time?
Can a constructor call the constructor of parent class?
When arithmeticexception is thrown?
Why vector class is used?
Which collections are thread safe in java?