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

Tell us something about an iterator.

722


What are the methods of object class ?

780


Tell us something about different types of casting?

708


Is arraylist sorted in java?

721


What does snprintf return?

770


Write a program to print all permutations of string?

904


What are pass by reference and pass by value?

707


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1011


What are the advantages of inner classes?

732


What is prime number in java?

755


What are controls and their different types in awt?

832


Why Java doesn’t support multiple inheritance?

815


When do you call copy constructor?

727


How do you create a first line indent?

732


What is jit compiler in java?

798