Why compiler doesn't give error when we assign Integer(object) to int(primitive)?
int i;
Integer ii = new Integer(5);
i = ii;//no compilation error.
And this is the case with all other types(byte-Byte, float-Float)..
What is the reason? Am i missing something here?