What is the output of the following code?
boolean even = false;
System.out.println((even ? "true" : "false"));
a. true
b. false
c. nothing
d. true false
b Since even is false, the conditional expression yields false. The correct answer is B.
Computer Science & Information Technology
You might also like to view...
A(n) ________ refers to a visual display of information—posters, banners, or SmartArt diagrams
Fill in the blank(s) with correct word
Computer Science & Information Technology
New records are always added at the ____________________ of the table.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology