what is the Arraylist limit (maximum) by default ?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does bitwise or mean?

821


What is the difference between the boolean & operator and the && operator in java programming?

779


What is the static import?

828


What is bubble sorting in java?

820


What is javac used for?

701


What is the difference between scrollbar and scrollpane?

835


What is the advantage of preparedstatement over statement?

829


What is a string token?

730


In how many ways we can do synchronization in java?

747


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

2073


What does arrays sort do in java?

762


What is the difference between arraylist and hashset in java?

778


What is an empirical question?

773


Explain some best practices you would apply while using collection in java?

815


Explain about class in java?

846