2. Predict the output of the following code:
public class If1 {
static boolean b;
public static void main(String[] args) {
short hand = 42;
if ( Hand < 50 & !b ) hand++;
if (hand > 50);
else if (hand > 40 ) {
hand += 7
hand++;)
else
--hand;
System.out.println(hand);
}
Answers
Answered by
0
Answer:
40
Explanation:
"40" (and any subsequent words) was ignored because we limit queries to 32 words.
Similar questions