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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we print null in java?

569


What are access specifiers in java ?

588


Can vector have duplicates in java?

505


How do you declare a destructor in java?

502


Explain about automatic type conversion in java?

565






What are meta-annotations?

553


What is a null class?

568


What is ascii format?

548


How many types of assembly languages are there?

523


What are multiple inheritances?

579


Can arraylist contain null values?

566


Which is better stringbuilder or stringbuffer?

526


How do you reverse sort a list in java?

505


What does next mean in java?

534


What is the difference between multiple processes and multiple threads?

570