This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hey, Here there are two methods one takes short while other one takes float, Since we passed a int value ,the method with float argument is taken and printed float. Since For Short you know that 16 bit is the range while for float it is 64bits. Assigning Wider Conversion is allowed ,while Narrowing the conversion then we need to use casting for it.