what is the Arraylist limit (maximum) by default ?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you use a static class?

571


What are the types of sockets in java?

532


What is class array in java?

499


What is java objectoutputstream?

535


Difference between method overloading and method overriding in java ?

556






Can I uninstall java?

542


What is static keyword?

583


What is meant by null and void?

526


How to find the index of the largest number in an arraylist java?

507


What is treeset in java collection?

513


What is logical variable?

498


What happens if we override only equals?

572


What are the two ways in which thread can be created?

589


What is the use of static class?

536


Explain reverse a linked list iterative solution in java?

490