DEVFYI - Developer Resource - FYI

What is the difference between the >> and >>> operators?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

185. What is the difference between the >> and >>> operators?

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.

(Continued on next question...)

Other Interview Questions