Live quiz

java - Part 3

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following Java program? class dynamic_initialization { public static void main(String args[]) { double a, b; a = 3.0; b = 4.0; double c = Math.sqrt(a * a + b * b); System.out.println(c); } }

  • A
  • B
  • C
  • D