Multiple Choice
What is the output of the following Java code? int x = 0; if (x > 0) System.out.println("positive ") ; System.out.println("zero ") ; System.out.println("negative") ;
A) zero
B) negative
C) zero negative
D) positive zero negative
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q32: Suppose str1 and str2 are String variables.
Q33: When one control statement is located within
Q34: The expression !(x <= 0) is true
Q35: Suppose that the input is 6 and
Q36: Suppose that you have the following statements.
Q38: Which of the following has the highest
Q39: Two-way selection in Java is implemented using
Q40: Based on the code above, what is
Q41: Including a semicolon before the action statement
Q42: All switch structures include default cases.