hello daniweb.. :)
I am learning JAVA and currently new to it, I am studying "The Complete Reference-JAVA" by Herbert Schildt.
In that book its written that using short or byte will save space, but there is no guarentee that Java won't promote those types into int internal anyway.
Remember TYPE DETERMINES BEHAVIOR NOT SIZE.
I didn't understand is type independent of size ..??? only depends on behavior??
in java int is of 4 byte whether it is machine dependent..??
Please explain me every thing related to this.:icon_eek: