Abstraction and Program Design - AP Computer Science A

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What is the result of 'System.out.println(7.0/2);'?

Tap to reveal answer

Answer

The result is 3.5, due to floating-point division. Double operand promotes calculation to floating-point arithmetic.

← Didn't Know|Knew It →