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
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
English,
5 months ago
Physics,
5 months ago
Social Sciences,
5 months ago
English,
10 months ago
Math,
10 months ago