This post is inspired by an entry on nflath.com about the dangers of String.substring() method.
Probably most of the Java users is aware that String object is more complex than just an array of char. To make the usage of strings in Java more robust additional measures were taken – for instance the String pool was [...]