posted 15 years ago
Hi,
this is because the hierarchy is something like this:-
1st level Object class
2nd level Number class
3rd level Integer,Short,Long,Double,Byte
what i want to say is that Integer ,Short ..and all those exit in 3rd level are siblings
they all extend Number class..,when you widen you go up you can't go sideways
but in primitives its different...,
I tried my best to make you understand..hope your doubt is cleared
Thanks