KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

int x = (int)32.8; is an example of …………… typecasting.

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

Values & Data Types Java

ICSE 2023

20 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

9 Likes


Related Questions