title: Object is Null even after instantiating it
body: <p>I have a question regarding this code:</p>
  
  <pre><code>Object obj = null;
  someMethod(obj);
  System.out.println(obj.getId());
  ..
  ..
  void someMethod(Object obj) {
      obj = new Object();
      obj.setId("Id1");
  }
  </code></pre>
  
  <p>The above code is throwing <code>NullPointerException</code>. Can anyone tell me why is the object still null even after instantiating it inside the method? </p>