Java Blog

 
 
 
 public class JAVA_009
 {

    public static void main(String[] args)
    {
       int a=26317;  // 0110011011001101
       int b=15;     // 0000000000001111

       int c=(a^b);  // 0110011011000010

       System.out.println(\"a = 0110011011001101 = \" + a);
       System.out.println(\"b = 0000000000001111 = \" + b);
       System.out.println(\"c = a^b = 0110011011000010 = \" + c);
    }
 }

    Related Post:
  1. Program to show an example of Multiple Levels of Inheritance

  2. Program that demonstrates type casting

  3. Do the following for the Array Insert the element in the array,delete an element from the array,search for a particular element Create multiple thread

  4. Program to determine the sum of the following harmonic series for a given value of n

  5. Program of writing Bytes to a File

  6. Program to show an example of using Abstract Class and Abstract Method

  7. Program to show the use of If-Else Statement

  8. Develop a CORBA application that takes a string from client and returns whether it is palindrome

  9. Program to show an example of searching Strings for subStrings

  10. Corba program of game

  11. Program to declare, initialize and print a 2D array of integers

  12. An applet program to add two numbers where data is entered in TextField

  13. GUI application in java, which enter the details of a student and on the submit display the details of the student

  14. Corba program to develop a simple calculator with addition, subtraction, multiplication and division capabilities, data collection from client side

  15. Servlet which takes input from an HTML client page and calculates and outputs the premium amount

  16. Program that will count the number of lines in each file that is specified on the command line

  17. Program to show an example of getting at characters in a String

  18. Program which simulate the dictionary in java

  19. Corba program to Write a Echo server and client with UDP server and client

  20. An applet program to take user input and display

 
 
Didn't find what you were looking for? Find more on Program to show the use of Bitwise Operator (^) XOR (Exclusive OR)