← Bit Manipulation Quiz: all 8 questions
Bit Manipulation Quiz · Question 8 of 8
In Java, which shift fills with 0s even for negative numbers?
In Java, which shift fills with 0s even for negative numbers?
- A.
- B.
- C.<<
- D.~
Answer & explanation
Correct answer:
is the unsigned right shift; >> copies the sign bit.
Can you get the rest right without peeking?
Take the timed Bit Manipulation Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →