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

How do you reverse a word in java?

514


Difference between character constant and string constant in java ?

531


What do you mean by access modifier?

525


Can you override a final method?

558


What is a void method java?

492






Is there a way to increase the size of an array after its declaration?

574


What is a instance variable?

564


What are three advantages of using functions?

515


Why hashmap is used in java?

525


How many digits is int32?

508


When object is created and destroyed?

618


How can constructor chaining be done using this keyword?

568


What is remote method invocation (rmi)?

595


What are the kinds of polymorphism?

586


How to create packages in java?

507