Max Java String Length
I was wondering about what would be the maximum String length in Java, and the funny thing is that Java’s Strings are Arrays that are indexed by int.
So the maximum String length is
And this is true for any Java Array:
I was wondering about what would be the maximum String length in Java, and the funny thing is that Java’s Strings are Arrays that are indexed by int.
So the maximum String length is
And this is true for any Java Array: