title: Why does an int parameter allow passing a char value, but a char parameter doesn't accept passing an int value?
body: <p>When I declare a Java method, why does a Java int parameter accept a passed char value, but a char parameter doesn't accept a passed int value?</p>
  
  <p>For example:</p>
  
  <pre><code>// method which : int parameter
  public static void printInt(int input) { 
      System.out.println(input);
  }
  // method which : char parameter
  public static void printChar(char input) {
      System.out.println(input);
  }
  
  // main 
  System.out.println("----------------------------------------");
  printInt('a');      // print 97 [number of ASCII char 'a']
                      // int parameter accept char value
  printChar(97);      // compilation error
                      // char parameter NOT accept int value
  System.out.println("----------------------------------------"); 
  </code></pre>