Hi, please have a look over the following code, and tell me why the Byte type variable is also being upgraded to Float type while calling as a function argument? The Integer variable is understandably upgraded to Float, but why Byte, even when the definition of function with Byte argument is available?
I'm not sure but I'd say it's because you're using Byte as the incoming parameter type in the method. The initial variable is a byte, not a Byte. There is nothing in Java to automatically cast a byte type to a Byte object.
Originally posted by Paul Keohan: I'm not sure but I'd say it's because you're using Byte as the incoming parameter type in the method. The initial variable is a byte, not a Byte. There is nothing in Java to automatically cast a byte type to a Byte object.
Thanks. :-)
------------------ Manish.
Manish
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.