title: Package.getPackage in java returning null
body: <p>I have some classes A, B, C in package com.abc</p>
  
  <p>I have a Class Main in package com.pqr</p>
  
  <p>Now I want to create a package object of the previous pacakge (abc).</p>
  
  <p>For this I tried,</p>
  
  <pre><code>Package pkg = Package.getPackage("com.abc");   // This gives me null object in pkg
  </code></pre>
  
  <p>But when I do, </p>
  
  <pre><code>Package pkg = A.class.getPackage();    // It works fine
  </code></pre>
  
  <p>Can anyone notify, Why Package.getPackage("package-name") is not working ?</p>