java - How much data can a List can hold at the maximum? -


how data can added in java.util.list in java @ maximum?

is there default size of arraylist?

it depends on list implementation. since index arrays ints, arraylist can't hold more integer.max_value elements. linkedlist isn't limited in same way, though, , can contain amount of elements.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -