title: Java: passing an argument with a different type to a function
body: <p>In Java, suppose we have a function with the parameter <code>double a</code>. Does it work if I pass an integer as argument? (I mean, is there an implicit conversion?) And in the opposite case: if I have e.g. an integer as parameter, and I pass a double?</p>
  
  <p>Unluckily, I am not able to compile my code at the moment, and I would like to check this assert.
  Thank you for your attention.</p>