I have a question about Java Primitive.
Is there some reason as to why the default type in java for the Integer
primitive is int and not for example a short
or byte
?
For example if I write
byte b = 10;
the literal 10 is a int for the compiler. Why is that?
Does anyone know I indicate where to find the answer? I also searched the JSL but I found nothing...