Q57
What will be the output of the following Java program? class increment public static void main(String args[]) double var1 = 1 + 5; double var2 = var1 / 4; int var3 = 1 + 5; int var4 = var3 / 4; System.out.print(var2 + " " + var4);
A.
1 1
B.
0 1
C.
1.5 1
AnswerD.
1.5 1.0
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board