posted 17 years ago
Hi,
Also byte,short,char are int compatible.
If you see there is no constructor in Integer class which takes char as argument. So '1' is internaly converted to and it creates an Integer object.
let me know if my understanding is correct
thanks