What is use of arraylist in java?



What is use of arraylist in java?..

Answer / Lucky Kaushik

ArrayList is used in Java for dynamic arrays with growable size. It is useful when the number of elements to store is not known at compile time, or when the number of elements needs to change during runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is bmg file and how to create that files?what will it contailn?

1 Answers   HCL, Probe Services,


How to eliminate duplicates from an array?

6 Answers   ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,


Have you ever used hashtable and dictionary?

1 Answers  


What are the basics of core java?

1 Answers  


What are the differences between string, stringbuffer and stringbuilder?

1 Answers  


Explain about object oriented programming and its features?

1 Answers  


Is there any limitation of using inheritance?

1 Answers  


Does java support multi dimensional arrays ?

6 Answers  


What is substring 1 in java?

1 Answers  


What happens when you assigned a 'double' value to a 'String'?

8 Answers  


When should the method invokelater() be used?

1 Answers  


Is there a jre for java 11?

1 Answers  


Categories