This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Mahesh Murugaiyan wrote:
- I read that all numerical literals are int by default. so in the first example, the int 200 is narrowed down to short and then boxed into Short. (is it also because 200 can fit in short easily?)
Correct. This is defined in section 5.2 of the Java Language Specification....