I have a rather silly question but what is the maximum amount of characters the String object can hold?
This is what i mean
String str1 = some buffer that contains about 5 million characters as a string
What i am afraid is that if the String object may throw an exception if i return a huge string object say something down the lines of 5-50 million characters as a string. Will there be stack overflow?
I hope someone can help me with this