Can I suggest you read about the stages involved in compiling a program? What is the character set that the compiler uses to read source code? What character is \u0038? That is, what character does the compiler see in its input stream? Print the value of the float number to see what you get at run time. [ October 25, 2005: Message edited by: Barry Gaunt ]
there are no single quotes to indicate that its a character... i have compiled it ..its compiling ...can anyone explain me??
It is very simple, the java compiler simple doing the down casting for that ... that is storing the int to the float , so it wont give any error. but when you try to print the value , you may not get the exact value due to the automatic down casting.