There are other surprises. You might then expect byte * byte to be a byte, char * char to be a char, short * short to be a short, but they are not. All of them result in an int.
Further, byte and short are sign extended to int before the multiply.
long * long gives a long, again truncating without overflow notification. long * int also gives a long.
Floating point, (float and double) works quite differently. float * float gives a float and double * double gives a double. double * float also gives a double. Floating point warns you when the multiply fails by giving NaN (Not A Number) results.
This page is posted
Optional Replicator mirror
Your face IP:[184.108.40.206]
You are visitor number|