1

Following code will result in :
int a1 = 5;
double a2 = (float)a1;

  • compilation error

  • runtime error

  • no errors

  • Runtime Exception