Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
Can Java String handle 10^15 characters ?
Asked
Feb 17 '15 at 12:56
Active
Feb 17 '15 at 12:56
Viewed
69 times
0
Recently I came across a problem of handling a String of 10^15 characters !
Is it possible in Java?
java
string
java.util.scanner
asked Feb 17 '15 at 12:56
sr1
251
4
11
It is not possible with a single String instance. Even if it were possible, it would not be a particularly bright idea.
–
Marko Topolnik
Feb 17 '15 at 12:57
I hope it doesn't represent a name.
–
Maroun
Feb 17 '15 at 12:58
Have you tried this?
–
Andremoniy
Feb 17 '15 at 12:59
1
A `string` is backed by an array, meaning it has at most int.MAX_VALUE characters.
–
Jeroen Vannevel
Feb 17 '15 at 12:59
0 Answers
0