

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this 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 |
B. | 25.0 |
C. | 7.0 |
D. | Compilation Error |
Answer» B. 25.0 | |