Hi,
Going through a quick-fire
test in a
SCJA exam engine, I came across this statement:
This codecompiles without errors?
True -Exam answer:False -Exam description-The given code compiles correctly ,because it is a widening conversion from long to float and hence is allowed. Is it it not trying to convert float to long, are we not taking a float reference (f)and trying to assign it a long value,or am i mistaken, and its just a little badly worded?
It does complile however!
[ September 23, 2008: Message edited by: Stephen Davies ]