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

Answers were Sorted based on User's Feedback



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

Answer / sakthivel(gceb)(n.p)pollachi

no limit

Is This Answer Correct ?    7 Yes 0 No

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

Answer / rajender

there is no restriction to store object in arraylist.it's
default size is 10.wenever it's reaches the maximum size
it's increase size(current capacity*3/2+1).

Is This Answer Correct ?    7 Yes 1 No

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

Answer / 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

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

Answer / phanindra

ArrayList is resizeable in nature. by default it's size is
10. whenever it reaches the maximum a new ArrayList object
will be created with capacity of (Initialcapacity*3/2+1)
so there is no Limit we can store any number of objects in
an ArrayList.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / rahulmishra642

It depends on list implementation.Since ArrayList is backed by an arrays so its size is limited to Integer.MAX_VALUE
and it can't hold more than interger.MAX_VALUE.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sri

the size we specify is the limit

Is This Answer Correct ?    3 Yes 10 No

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

Answer / chandrashekhar

The size will be as equal to int size.

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More Core Java Interview Questions

Can a method be static?

0 Answers  


Explain the overview of UDP messaging.

0 Answers  


What is a percentage sign called?

0 Answers  


What is garbage collection in Java, and how can it be used ?

32 Answers   Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,


What are structs in java?

0 Answers  






What is method in research paper?

0 Answers  


Is java owned by oracle?

0 Answers  


Name the package that most of the AWT events that supports event-delegation model are defined?

2 Answers  


Can a static member function access member variable of an object?

0 Answers   Virtusa,


Is it possible to write static method in abstract class? justyfy your answer?

5 Answers   Hexaware,


What are different type of exceptions in java?

0 Answers  


INTERVIEW QUESTION FOR ANDROID

0 Answers  


Categories