Core Java - Interview Questions and Answers for 'Bitwise operator' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

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.
Label / Company      Label / Company / Text

   



Core Java - Interview Questions and Answers for 'Bitwise operator' - 2 question(s) found - Order By Rating

 Q1. What is the difference between && and & in Java ?Core Java
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?


 Q2. What is the difference between >> and >>>?
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




Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: