limit to a JAVA string?

is there a limit to the size of java strings???

I don’t believe there are any explicit limits on the length of a String, but there are some implicit limits depending on your compiler/JVM. For instance, many (most?) implementations use a char array to store Strings, and a char array is limited by using integer indices. Any given implementation may also be limited by available memory, etc. In any case, the max size is huge and if you’re exceeding it, you probably need to look at why your code requires such long strings.