Home / MCQ Bank / Computer
Computer Operators

What would be the output of the following code snippet if variable a=10? if(a<=0) { if(a==0) { System.out.println("1 "); } else { System.out.println("2 "); } } System.out.println("3 ");

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • 3

Related Computer Questions

Which operator is used to perform division of integers in C#? Which language was created by Charles H. Moore at National Radio Astronomy Observatory. Which of these is a method of ObjectOutput interface used to finalize the output state so that any buffers are cleared? Which of the following is characteristic of exploratory graph? Who proposed the depth first backtracking algorithm?