

MCQOPTIONS
Saved Bookmarks
1. |
What will the output of the following program? public class Test{ public static void main(String args[]) { float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } |
A. | 2 |
B. | 0 |
C. | 3 |
D. | 2.5 |
Answer» C. 3 | |