🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.
  2. B.
  3. C.<<
  4. 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 →