What are the Bit Operators? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
What are the Bit Operators?

```Bit operators are different frm logical operator. So,don't confuse with them.The keyword TRUE signifies a true bit (or bits) that is set to one,
and FALSE signifies a bit (or bits) that is set to zero.
Some Bitwise Operators are given below:

&: Performs a bitwise AND operation. If both operands are TRUE, the result is TRUE; otherwise, the result is FALSE.
|: Performs a bitwise OR operation. If either operand is TRUE, the result is TRUE; otherwise, the result is FALSE.
^: Performs a bitwise exclusive OR operation. If both operands are TRUE or both operands are FALSE, the result is FALSE. The result is TRUE if one operand is TRUE and the other is FALSE. Exclusive OR is used to test to see that two operands are different.
<<: Shifts the X operand, Y operand bits to the left. For example, (1 << 4) returns a value of 8. In bits, (0001 << 4) results in 1000. New
positions to the left are filled with zeroes. This is a quick way to multiply by 2, 4, 8, and so on.
>>: Shifts the X operand, Y operand bits to the right. For example, (8
>> 4) returns a value of 1. In bits, (1000 >> 4) results in 0001. New positions to the right are filled with ones or zeroes, depending on the value and whether the operand being shifted is signed. This is a quick way to divide by 2, 4, 8, and so on.
// Using a bitwise AND:
if (x & y)
{
// With x == 1, and y == 2, this will NEVER be TRUE.
}```

## More interview questions and answers

What is abstraction?

What is macro?

What�s the auto keyword good for?

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.

How multiplication take place upto 200 digits?

How to differentiate i++* and *++i?

What is the difference between getch() and getchar()?

Write a program crashed before reaching main? If happen, how?

What is a mutable member?

What are the problems with a tree-style hierarchy?

Write a program for 1 232 34543 4567654?

Why is iostream better than stdio?

What does exit() do?

When would you use private inheritance?

What is the difference between memcpy and strcpy?

What's the difference between a struct and a class?

How can we handle exceptions in C?

How to compare two strings without using the strcmp() function?

How to access or modify the constt variable in C ?

What is an volatile variable?

How the processor registers can be used in C?

IF **p and &(*p) are same, than tell how?

Can you write function similar to printf()?

How to use functions fseek(), freed(), fwrite() and ftell()?

What's an initializer list?

What do you understand about datatype?

What are the data type modifiers?

what are the constants?Explain in brief?

What is an explicit constructor?

What is the difference between a baller and a reference?

How to differentiate b/n definition and declaration?

How to define their types of variables and initialize them?

What are the advantages of inheritance?

What is the Standard Template Library (STL)?

What is type casting?Explain it with an example?

What are the Array?How to define and declare them?

What are the Array Indexing?explain.

hat is a nested class?

What do you understand about String?Explain it.

What are the defining traits of an object-oriented language?

What are the reserved Keywords?Explain it.

What are the ANSI reserved names in C?

How do you access the static member of a class

What are the pointers?How to declare them?

What is the difference between class and structure?

What are the Indirection?Explain with an example?

Tell us the Name the operators that cannot be overloaded??

What are the Function Pointer?Explain with an example?

What are the Bit Operators?

What are the External Variables?

How to define structure in C?

How do u understand about structures of arrays?

How do you define offsetof() Macro?

What the use of malloc() function?

What is the difference between static link library and dynamic link library?

what is pulse code modulation?

What are the different types of malloc() function in C?

Why PCM is used?

What is the use of calloc() function?

What are smart pointer?

What is the difference between static link library and dynamic link library?

What are the different type of calloc() function?

What is placement new?

define destructor as static?

How to use free() function?

What is virtual inheritance?

How to differentiate local memory and global memory?

What is an iterator?

What is a constructor initializer list?

What is the mean of Modelling Language?

What is the significance of disk files?

What are the Text Files and Binary Files?

What are the temporary disk files?How to create them?

What are the stream files?

What are the stdin and stdout file?

What is the stdaux file?

What do you understand about Direct port I/O?

What is the generalisation?

What is the mean of Association?

What is an Visualizations?

What is the data management?Also define Sorting, merging and purging, Indexed files?

What is the CRC Cards?

What are the Limitations of CRC Cards?

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { new HelloWorld(); } static { i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { int i = 0; public static void main(String args[]) { System.out.println(i); new HelloWorld(); } static { int i; i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { int i = 0; public static void main(String args[]) { System.out.println(i); new HelloWorld(); } static { static int i; i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { int i = 0; public static void main(String args[]) { System.out.println(i); new HelloWorld(); } static { final static int i=0; i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); new HelloWorld(); } static { final int i=0; i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); new HelloWorld(); } static { static final int i=0; i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); new HelloWorld(); } static { static int i=0; i = 10; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); display(); } void display(){ i=90; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); display(); } static void display(){ i=90; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); display(); } static void display(){ int i=0; i=90; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); display(); HelloWorld h=new HelloWorld(); h.display(); } static void display(){ int i=0; i=90; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); HelloWorld h=new HelloWorld(); h.display(); } void display(){ int i=0; i=90; System.out.println(i); } }

What is output of following code package r4r.co.in.core.java; public class HelloWorld { static int i = 0; public static void main(String args[]) { System.out.println(i); display(); HelloWorld h=new HelloWorld(); h.display(); } void display(){ int i=0; i=90; System.out.println(i); } }