title: The String.substring() in java
body: <pre><code>import java.util.*;
  
  public class Test2{
    public static void main(String[] args){
      String s1 = "Delivery";
      String s2 = s1.substring(8);
      System.out.println(s2);
    }
  }
  </code></pre>
  
  <p>Why does this gives a blank space? Shouldn't the eighth position out of bound?</p>
  
  <p>Also, why is s1.charAt(8) prompts outOfBound error? Do they use different method to handle the problem?</p>