Homework Clinic
Science Clinic => Computer Science => Topic started by: oliviahorn72 on May 6, 2020
-
Question 1
What is the output of the following code?
boolean even = false;
System.out.println((even ? "true" : "false"));
◦ true
◦ false
◦ nothing
◦ true false
Question 2
The order of the precedence (from high to low) of the operators binary +, *, &&, ||, & is ________.
◦ &, ||, &&, *, +
◦ *, +, &, ||, &&
◦ &&, ||, &, *, +
◦ *, +, &&, ||, &
◦ *, +, &, &&, ||
-
Answer 1
false
Answer 2
*, +, &, &&, ||
-
tysmmmmmm