title: Why java do not give error on returning an integer while the return type is long or double?
body: <pre><code>public double delhi(Integer a)
      {
          return (int)a;
      }
  </code></pre>
  
  <p>In case you do not get it, look at the return type of the method</p>