What Will Be The Output Of The Following Java Programp Pre #60
What will be the output of the following Java program?</p> <pre><code class="language-java" line="1"> 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); } }</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs128 Java.
It can also be found in
gs gs128 Java Data Types Variables Arrays - Java Literals & Java Variables - Quiz No.1.