posted 12 years ago
Hello Dishi,
Compiler generates error because you cannot widen and then box..
Actually what i believe is short is Autoboxed to Short but that Short type is not subclass of Integer,
so compiler says it cant find the appropriate method...
Refer K&B, chapter3 (page 248-254)...
HTH