Discussion Locked

Sting length

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a limitation on the maximun lenght of a string in Java.

1 reply

by karlww

I believe a string is limited to a theoretical maximum of 2147483647 bytes.

Of course in reality, this obviously depends on the amount of physical memory available as well.

This discussion is closed to new replies.