Java Blog

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

       int c=(a|b);  // 0110011011001111

       System.out.println(\"a = 0110011011001101 = \" + a);
       System.out.println(\"b = 0000000000001111 = \" + b);
       System.out.println(\"c = a|b = 0110011011001111 = \" + c);

    Related Post:
  1. CORBA based application for addition of two mathematical expressions of the form (ax + by) and displaying the result on client side

  2. Program of FTP client and server

  3. Program of Floyds Triangle

  4. An applet program of showing new document using showDocument(URL) method

  5. Define an array of ten String elements each containing an arbitrary string of the form “month/day/year”

  6. Program of concatenating and Buffering files

  7. Program for calculating area of a circle on server side,when a client sends request along with given radius and then displaying result on client side

  8. An applet program to find maximum of three numbers using textField

  9. Given a list of marks ranging form 0 to 100, write a program to compute and print the number of students marks

  10. Add,delete,Update in LISTS

  11. Create an interface coversions. Which have the following functions Inchestomillimeters(), hptowatts(),wattstohp(),poundstogram(),gramtopounds()

  12. 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

  13. An applet program that concatenates two string entered in TextField

  14. Program to show an example of Multiple Levels of Inheritance

  15. Program that accepts a shopping list of five items from the command line and stores them in vector

  16. Program to represent a bank account

  17. Program, which creates a three thread. One thread display the numbers from 1 to 5, second thread display the square root of that number etc

  18. Program to declare, initialize and print an array of characters

  19. An applet program to display Vertical Color Bar

  20. Socket program of HTTP Server

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