If primitive type int is converted to wrapper Integer, it is called boxing.
int----> Integer is boxing. Integer---> int is unboxing.
Now boxing and unboxing are done by compiler, so it is called autoboxing and autounboxing.
If Integer is converted to Number, it is called upcasting or implicit casting, as it happens implicitly. If Number is converted to Integer, it is called downcasting or explicit casting, as we have to do it explicitly. like: Number n; Integer i=(Integer)n;
Joined: Oct 17, 2006
@punit When you say 'autounboxing', you are wrong. It's 'unboxing' basically. And I think the usage of word 'widening' in case of object level is also meaningful. [ December 17, 2008: Message edited by: Rajshekhar Paul ]