Computer Applications

int x = (int) 32.8;

It is an example of …………… type casting.

  1. implicit
  2. automatic
  3. explicit
  4. coercion

Values & Data Types Java

3 Likes

Answer

explicit

Reason — In explicit type conversion, the data gets converted to a type as specified by the programmer. Here, the float value 32.8 is being converted to int type by the programmer, explicitly.

Answered By

1 Like


Related Questions