what is the Arraylist limit (maximum) by default ?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / rohit
the maximum limit of items stored in arraylist is approx. 6*10^8
| Is This Answer Correct ? | 7 Yes | 5 No |
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 |
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 |
Answer / umamaheswaran
Hi All
The Answer is 62848
After this the JAVA will emit OutOfMemoryException
| Is This Answer Correct ? | 6 Yes | 8 No |
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 purpose of tostring() method in java?
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?
What is the difference between the final method and abstract method?
what are the methods of an object class?
Why do we need to override equals() and hascode() method of object class?
How many types of gc are there in java?
Explain the reason behind ending a program with a system.exit(0)?
What are recursive functions?
What is definition and declaration?
what is features of jdk 1.5?
2 Answers Accenture, Satyam, TCS,
please send me hr interview questions in it industry
What does 0 mean in boolean?