Bitwise OR( | )
The Bitwise OR, is represented by the symbol | (vertical bar) and is surrounded by two integer operands. The result of OR operation is 1 if at least one of the bits has a value 1; otherwise it is zero.
Program
public class Javaapp { public static void main(String[] args) { int a = 10; int b = 12; int c = a | b; System.out.println("Value of c = "+c); } }