Leave a Reply 3

Your email address will not be published. Required fields are marked *


rfvc

rfvc

B.

int sum because 10 and 20 are primitive values. Integer.valueOf(10) would return Integer sum.

double sum because 10.0 and 20.0 aren’t float because doesn’t have the literal f. then jvm uses or promotes to double values.