adplus-dvertising
frame-decoration

Question

If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?

a.

long

b.

int

c.

double

d.

float

Posted under Java Programming

Answer: (c).double

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?