What Will Be The Output Of The Following Java Codep Pre #10
What will be the output of the following Java code?</p> <pre><code class="language-java" line="1"> class area { public static void main(String args[]) { double r, pi, a; r = 9.8; pi = 3.14; a = pi * r * r; System.out.println(a); } }</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 Integer and Floating Data Types - Quiz No.1.