Live quiz

java - Part 17

Question 1 of 25 Hints left: 3
Q1

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
  • B
  • C
  • D