title: Method Overloading for null argument
body: <p>I have added three methods with parameters:</p>
  
  <pre><code>public static  void doSomething(Object obj) {
      System.out.println("Object called");
  }
  
  public static  void doSomething(char[] obj) {
      System.out.println("Array called");
  }
  
  public static  void doSomething(Integer obj) {
      System.out.println("Integer called");
  }
  </code></pre>
  
  <p>When I am calling <code>doSomething(null)</code> , then compiler throws error as <strong>ambiguous methods</strong>. So is the issue because <code>Integer</code> and <code>char[]</code> methods or <code>Integer</code> and <code>Object</code> methods?</p>