Howmany number of objects we can store in an ArrayList. Is
there any limit?

Answer Posted / abdul

Array list size will increase dynamically.By default we can
store 16 objects.If number of objects increases the
arraylist size increase dynamically as below.
(2*Prevous size+2)
For ex: (2*16+2)=34 next time
(2*34+2)= 70

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by exception handling in Java?

662


What is immutable in java?

539


Why singleton is not thread safe?

561


What do bitwise operators do?

522


Can constructor be protected in java?

506






What is main difference between variable and constant?

523


What is difference between char array and string?

525


What is native code?

533


Why should we use singleton pattern instead of static class?

458


What are 4 pillers of object orinted programming?

580


Is 9 a prime number?

464


How is string immutable in java?

539


Why does my function print none?

516


What do you mean by default constructor in java?

574


What is the declaration statement?

508