.
, 2012
. = 37748734
Java: 1.6.0_35
: Windows 7
: 32 (x86)
: 2
: Pentium Dual Core E5800 3,20
2016
. = 301989886
Java: 1.8
OS: Ubuntu 14 LTE and Windows 7
System Architecture: 64 bit (x86_64)
RAM: 8 GB
Processor: Intel (R) Core (TM) i3-4130 CPU @ 3.40 GHz
Run this program yourself
StringBuffer strbTest = new StringBuffer();
long len = 0;
try {
System.out.println("Wait.... til number not generated.");
while(true) {
strbTest.append("a");
len++;
}
} catch (OutOfMemoryError e) {
System.out.println("Max length on your system is "+len);
System.out.println("Error");
}
System.out.println("End");
Output
Max length on your system is 37748734
source
share