Vidyalelo
Java Programming · Q72

Data Types and Variables

Programming · Java Programming · question 72

Q72

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.
5.0
Answer
B.
25.0
C.
7.0
D.
Compilation Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board