Java is a strictly typed language: you cannot simply mix int and double without an explicit indication. Conversions are divided into widening (automatic) and narrowing (requires explicit cast).
Widening Conversion
Java is a strictly typed language: you cannot simply mix int and double without an explicit indication. Conversions are divided into widening (automatic) and narrowing (requires explicit cast).