title: Incrementing Char Type In Java
body: <p>While practicing Java I randomly came up with this:</p>
  
  <pre><code>class test
  {
      public static void main(String arg[])
      {
          char x='A';
          x=x+1;
          System.out.println(x);
      }
  }
  </code></pre>
  
  <p>I thought it will throw an error because we can't add the numeric value <code>1</code> to the letter <code>A</code> in mathematics, but the following program runs correctly and prints </p>
  
  <pre><code>B 
  </code></pre>
  
  <p>How is that possible?</p>