Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Java concepts and its programming

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); } } ?

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. 1
C. 2
D. 3

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); } } ? Read More »

Java concepts and its programming