What does the >>> operator do in Java?
- Bitwise OR operation
- Left-shifts with sign extension
- Logical AND operation
- Right-shifts with zero fill
The >>> operator in Java is used for a logical right shift with zero fill. It shifts the bits of a binary number to the right and fills the leftmost bits with zeros. This operator is often used with bitwise operations to manipulate binary data. The other options do not accurately describe the >>> operator.
Loading...
Related Quiz
- What is the purpose of using URL Encoding in Java?
- Which class allows you to read lines of text from a file?
- Which of the following concepts allows Java objects to be initialized with actual data when they are created?
- Which of the following functional interfaces in Java utilizes Lambda expressions?
- Consider a scenario where a very large number of string concatenation operations are being performed in a single-threaded application. Which class would be appropriate to use for string manipulation, and why?