Until Java 6, we had a constant time substring on String . In Java 7 ... Why they decided is discussed in Oracle bug #4513622 : (str) keeping a ...
stackoverflow.com