Java Reference
In-Depth Information
would be treated as equivalent to the integer 0x0000ffff . This treatment
is different from the way a short with the value 0xffff would be treated-
sign extension makes the short equivalent to -1 , and its int equivalent
would be 0xffffffff .
The above are all examples of different type conversions that can occur
within an expression, to determine the type of that expression. The
complete set of conversions is discussed next.
 
Search WWH ::




Custom Search