This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Binary numeric promotion is performed on the operands (�5.6.2). The type of an additive expression on numeric operands is the promoted type of its operands. If this promoted type is int or long, then integer arithmetic is performed; if this promoted type is float or double, then floating-point arithmetic is performed.
"a + c" will be an int '0'. [ August 02, 2006: Message edited by: wise owen ]
Joined: Jul 30, 2006
Thanks Wise for your reply,
-Now i know why the final output is 0. -Is the compiler unable to display the '\u0000' (invisible) char ? Is this the reason why it doesnt print lines after it for example,