Home / MCQ Bank / Computer
Computer Operators Difficulty: Medium

What will be the output of the following Java program? class comma_operator { public static void main(String args[]) { int sum = 0; for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1) sum += i; System.out.println(sum); } }

Select the correct option to test your answer:

More Computer Questions

Which of the following method is accepted for assignment? Which one of the following statements is true for require() and require_once()? In JDBC, what is the primary purpose of the `Driver` interface? Which of these is a correct statement about args in the following line of code? public static void main(String args[]) SERP abbreviation of;