Does null have Object type?
<p>Why does this output: "inside String argument method"? Isn't null "Object" type?</p>

<pre><code>class A {
    void printVal(String obj) {
        System.out.println("inside String argument method");
    }

    void printVal(Object obj) {
        System.out.println("inside Object argument method");
    }

    public static void main(String[] args) {
        A a = new A();
        a.printVal(null);
    }
}
</code></pre>
