Multiple choice

A lower precision can be assigned to a higher precision value in Java. For example a byte type data can be assigned to int type.

  1. True

  2. False

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

Java supports implicit type widening or promotion from lower precision to higher precision types. For example, byte (8 bits) can be assigned to int (32 bits), or int can be assigned to long. This is safe because the destination type can accommodate all possible values of the source type without data loss. The reverse (higher to lower precision) requires explicit casting.