title: Why does this method call on a null object run without a NullPointerException?
body: <p>What is the reason for the output? I know it prints <code>Hello World</code> but don’t know why as it should give <code>NullPointerException</code>.</p>
  
  <pre><code>public class Null
  {
      public static void greet()
      {
          System.out.println("Hello World");
  
      }
      public static void main(String[] args)
      {
          ((Null)null).greet();
      }
  }
  </code></pre>