Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Bitwise operators' - 2 question(s) found - Order By Newest | ||||
| ||||
Ans. Both bitwise right shift operator ( >> ) and bitwise zero fill right shift operator ( >>> ) are used to shift the bits towards right. The difference is that >> will protect the sign bit whereas the >>> operator will not protect the sign bit. It always fills 0 in the sign bit. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   operators   bitwise operators   binary shift   right shift | ||||
Related Questions | ||||
| ||||
Ans. && is a Logical whereas & is a bitwise operator | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  operators  logical vs bitwise operator | ||||
Related Questions | ||||
Difference between == and .equals() ? | ||||
What are different ways of object creation in Java ? | ||||
What is instanceOf operator ? Explain it's use ? | ||||
What is the difference between the following two code lines ? 1. new OuterClass().new InnerClass(); 2. new OuterClass.InnerClass(); | ||||
According to Java Operator precedence, which operator is considered to be with highest precedence? | ||||
Difference between new operator and Class.forName().newInstance() ? | ||||
Does java supports operator overloading ? | ||||
Difference between Class#getInstance() and new operator ? | ||||
What is the difference between >> and >>>? | ||||
Which Java operator is right associative? | ||||