Aeren
Newbie level 3
Hi everyone!
I would like to store a big amount of data in String format(most likely in an array or a vector), and i would like to know how much i can store(don't really know about memory stuff in JAVA). In a certain time it's possible, that i would like to store 40.000-50.000 or even 100.000 strings at a time.
I also would like to know, if i add strings toa vector like this:
vector.add(new String("bla-bla-bla"))
and later i empty the vector, will i destruct this String as well? Or will only garbage collecting take care of this?
Thanks!
Aeren
Added after 41 minutes:
To make a more direct question: around how many Strings can i store?
I would like to store a big amount of data in String format(most likely in an array or a vector), and i would like to know how much i can store(don't really know about memory stuff in JAVA). In a certain time it's possible, that i would like to store 40.000-50.000 or even 100.000 strings at a time.
I also would like to know, if i add strings toa vector like this:
vector.add(new String("bla-bla-bla"))
and later i empty the vector, will i destruct this String as well? Or will only garbage collecting take care of this?
Thanks!
Aeren
Added after 41 minutes:
To make a more direct question: around how many Strings can i store?