Java : JAVA Value and Types

If a is of type int and b is of type float what would be the resultant data type of a+b? , If a is of type int and b is of type float what would be the resultant data type of a+b?

If a is of type int and b is of type float what would be the resultant data type of a+b?

If a is of type int and b is of type float what would be the resultant data type of a+b?
A. int

B. float

C. double

D. short



Correct Answer :

B. float



CCC Online Test , CCC MCQ Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz career counselling in allahabad Website development Company in Allahabad