Multiple choice technology databases

When you add a float, int and byte the result will be

  1. float

  2. int

  3. byte

  4. double

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

When mixing numeric types in arithmetic, Java promotes to the widest type involved: float (32-bit) + int (32-bit) + byte (8-bit) results in float. Promotion follows: byte/short/char → int → long → float → double. Since float is present, all operands are promoted to float. The result is NOT double (higher precision) or int (narrower).