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. 0

B. 2

C. 3

D. 1

Be the first to comment if anything wrong with this mcq
Your comment successfully submitted!
It will automatically posted after review and approval by our staff member.