what is the Arraylist limit (maximum) by default ?

Answers were Sorted based on User's Feedback



what is the Arraylist limit (maximum) by default ?..

Answer / raj

Array List can store more than 3277000 numbers. However the
size of list is depends on the memory (heap) size. If it
reaches maximum the JDK throws out of memory exception.

Is This Answer Correct ?    67 Yes 3 No

what is the Arraylist limit (maximum) by default ?..

Answer / veera

Array List is dynamic growing. so no maximum. length but It
is not synchronized.

by

veera.

Is This Answer Correct ?    41 Yes 14 No

what is the Arraylist limit (maximum) by default ?..

Answer / vijay

2^31-1.

Is This Answer Correct ?    26 Yes 4 No

what is the Arraylist limit (maximum) by default ?..

Answer / rohit

the maximum limit of items stored in arraylist is approx. 6*10^8

Is This Answer Correct ?    7 Yes 5 No

what is the Arraylist limit (maximum) by default ?..

Answer / venkat

ArrayList has index which is an int....so the maximum size
of arraylist is (2 power of 32) - 1

Is This Answer Correct ?    3 Yes 1 No

what is the Arraylist limit (maximum) by default ?..

Answer / shreya

ArrayList default limit is 16

Is This Answer Correct ?    0 Yes 1 No

what is the Arraylist limit (maximum) by default ?..

Answer / shreya tanavade

Sorry fo r d mistake...Arraylist default capacity is 10...Aftr that wen you add the 11 th element its size increases by 50%....i.e...it becomes 15..and it goes on increasing as u go on adding...

Is This Answer Correct ?    0 Yes 1 No

what is the Arraylist limit (maximum) by default ?..

Answer / umamaheswaran

Hi All
The Answer is 62848
After this the JAVA will emit OutOfMemoryException

Is This Answer Correct ?    6 Yes 8 No

what is the Arraylist limit (maximum) by default ?..

Answer / raj

Array limit is keep on growing .ther is no max size in an array

Is This Answer Correct ?    8 Yes 11 No

what is the Arraylist limit (maximum) by default ?..

Answer / sanjay leela bhansali

Its More than 250000 in 1.6

Is This Answer Correct ?    7 Yes 14 No

Post New Answer

More Core Java Interview Questions

What is a boolean output?

0 Answers  


What is treeset in java?

0 Answers  


Is null a string in java?

0 Answers  


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

2 Answers   TCS,


what is filters and its use?

2 Answers   Virtusa,






What are wrapped classes in java programming?

0 Answers  


What is the purpose of the system class in java programming?

0 Answers  


Can we create our own daemon thread?

0 Answers  


How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?

1 Answers   Saksoft,


How many bits is a 64 bit byte?

0 Answers  


how many types of Inheritance?

0 Answers   Impetus,


Which graphs are functions?

0 Answers  


Categories