+ 2
Is there a limit to the amount of characters that you may have in a String variable?
^
2 ответов
0
String is a Char array, so the limit should be the same, the max value of int, 2^31-1. Maybe it's determined by the stack or heap memory.
0
that depends where you declare it in stack or heap