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.
Vijay Chandran wrote:Why the first and second print statements printed the same value? In the first addition expression, the left operand is long type. In the second both operands are integers.
Why the result of the addition gave the same value?
Well, what did you expect as the output ? Note that your last statement's second argument is "5432L".