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

Q & ACategory: JavaIf an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?
Admin Staff asked 5 years ago

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

1 Answers
Admin Staff answered 5 years ago

c) double