1

What are the types of casting shown by the following examples?
i) double x =15.2;
int y =(int) x;
ii) int x =12;
long y = x;

  • i) Explicit casting
    ii) Implicit casting

  • i) Implicit casting
    ii) Explicit casting