What does the operator >>> do?

Java MCQ: What does the operator >>> do?

a) Zero-fill right shift
b) Signed right shift
c) Left shift
d) Signed left shift

Answer:

a) Zero-fill right shift

Explanation:

The >>> operator in Java is the zero-fill right shift operator. It shifts the bits of the operand to the right and fills the leftmost bits with zeros, regardless of the sign of the number.

Reference links:

https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top