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
What is difference between java and java ee?
What is a default method?
What is thread synchronization in java?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is difference between hashset and hashmap?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
When is update method called?
What one should take care of, while serializing the object?
what is difference between equals and ==?
How will you get the platform dependent values like line separator, path separator, etc., ?
Can a class have 2 constructors?
what is server side caching?
Is java developer a good career?
What is a get method?
What does it mean to flush a file?