Multiple choice technology programming languages

Which of the following statements are true?

  1. System.out.println( -1 >>> 2);will output a result larger than 10

  2. System.out.println( -1 >>> 2); will output a positive number

  3. System.out.println( 2 >> 1); will output the number 1

  4. System.out.println( 1 <<< 2); will output the number 4

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

-1 >>> 2 (unsigned right shift) produces a large positive number because -1 is all 1s in binary. The result 1073741823 is larger than 10. 2 >> 1 equals 1 (right shift halves it). <<< is not a valid Java operator.