Multiple choice technology programming languages

Casting occurs commonly between numeric types

  1. True

  2. False

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

Casting between numeric types (int, long, float, double, short, byte, char) is a fundamental operation in Java. This includes both widening conversions (like int to long) which are implicit, and narrowing conversions (like double to int) which require explicit casting. Primitive numeric types have well-defined conversion rules, making casting between them a common operation.