Assuming the variable score has been assigned the value 9, which of the following statements displays XXX?

Question:

Assuming the variable score has been assigned the value 9, which of the following statements displays XXX?
a. if(score <= 9) System.out.println("XXX");
b. if(score > 9); System.out.println("XXX");
c. if(score > 0); System.out.println("XXX");
d. All of the above display XXX.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: