What Will Be The Output Of The Following Java Programp Pre #269
What will be the output of the following Java program?</p> <pre><code class="language-java" line="1"> class Output { static void main(String args[]) { int x , y = 1; x = 10; if(x != 10 && x / 0 == 0) System.out.println(y); else System.out.println(++y); } }</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 Classes Methods - Java Methods Taking Parameters - Quiz No.1.