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


Please Help Members By Posting Answers For Below Questions

What is difference between java and java ee?

553


What is a default method?

517


What is thread synchronization in java?

479


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

520


What is difference between hashset and hashmap?

554






Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

609


When is update method called?

668


What one should take care of, while serializing the object?

482


what is difference between equals and ==?

586


How will you get the platform dependent values like line separator, path separator, etc., ?

579


Can a class have 2 constructors?

496


what is server side caching?

1602


Is java developer a good career?

550


What is a get method?

530


What does it mean to flush a file?

564