Difference between array and arraylist.

Answer Posted / priya

Simply,

Array is static ie, Size Does not grow, its fixed

ArrayList is dynamic, By adding values, it grows

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we clone singleton object?

766


What is jrmp?

716


What is gc()?

734


What is difference between core java and java ee?

648


How do you trim a space in java?

703


Which class is the superclass of all classes?

808


What is local class in java?

742


Is java platform independent?

749


Explain the public class modifier?

692


what is mutual exclusion? : Java thread

752


How many bytes is a string in java?

705


Can we serialize static variables in java?

847


Can variables be used in java without initialization?

760


Can we inherit inner class?

707


What do you understand by the bean persistent property?

743