Computer Science, asked by sarkarsid, 10 months ago

Match the following.
long Ivalue=20;int value =
(int)lvalue;
Implicit Conversion
FIFA
int value = 20; long
Ivalue=value;
Explicit Conversion
BE
EEE
ES
SUBMIT ALL​

Answers

Answered by priyadharsini0oyfy1a
16

Answer:

1 int value = 20; long Ivalue = value; is implicit conversion

2 long Ivalue = 20; int value = (int)Ivalue; is explicit conversion

Explanation:

In statement 1 it automatically converts the int to float lower size datatype to high size datatype

In statement 2 we need to do type casting converting values to different type than its source such that convert the long to int by casting as(int).

Similar questions