"abcdefg".substring( 3, 5 ) gives "de". "abcdefg".substring( 3, 7 ) gives "defg". "abcdefg".substring( 3, 8 ) gives StringIndexOutOfBoundsException.