3
Mengapa "short three = 3 * 10" merupakan tugas hukum?
Jika shortsecara otomatis dipromosikan ke intdalam operasi aritmatika, mengapa: short thirty = 10 * 3; Penugasan hukum untuk shortvariabel thirty? Selanjutnya, ini: short ten = 10; short three = 3; short thirty = ten * three; // DOES NOT COMPILE AS EXPECTED serta ini: int ten = 10; int three …
102
java
short
type-promotion