I am a bit confused that a long type takes 8 byte of space and float type takes 4 byte then how it is possible to type cast a long type into float first..
as i know that if i have two method like-
void show(float f)
void show(double d)
and if i try to call show() method by passing a long type value then it look for exact match if not found then it implicit type cast into float and give the result as float value...