[img]http://www.flyheart.com/bbs/attach/2002/11/07/59790-signature-embed.jpg[/img]
Let us be showered in the light of confusion!
SCJP2
Originally posted by Chung Huang:
...However, I thought int and float both has same bit size, therefor the cast is a simple conversion not a widening conversion...
[img]http://www.flyheart.com/bbs/attach/2002/11/07/59790-signature-embed.jpg[/img]
Originally posted by huanyu zhao:
float foo=-1;
yes it`s a widening conversion,but should it
float foo=-1f; why there is no suffix f?
byte-[short]
---int---long---float----double
[char]
is it a widen order? why?
long is 64 bits and float is only 32 bits? why is widening conversion???