About 304,000 results
Open links in new tab
  1. Java Operators : |= bitwise OR and assign example [duplicate]

    Oct 22, 2013 · It calculates the bitwise OR of the two operands, and assigns the result to the left operand. To explain your example code: matches |= field.contains(search); I presume …

  2. Bitwise Operators in Java - GeeksforGeeks

    Apr 18, 2025 · Below are the main bitwise operators available in Java: Now, let's look at each one of the bitwise operators in Java: 1. Bitwise AND (&) This operator is a binary operator, denoted …

  3. Java Bitwise Operators - Baeldung

    Mar 17, 2024 · Bitwise operators work on binary digits or bits of input values. We can apply these to the integer types – long, int, short, char, and byte. Before exploring the different bitwise …

  4. Java Bitwise OR and assignment operator - AlphaCodingSkills

    The Bitwise OR and assignment operator (|=) assigns the first operand a value equal to the result of Bitwise OR operation of two operands. The Bitwise OR operator (|) is a binary operator …

  5. Java Bitwise OR Assignment (|=) Operator - Tutorial Kart

    In Java, Bitwise OR Assignment Operator is used to compute the Bitwise OR operation of left and right operands, and assign the result back to left operand. In this tutorial, we will learn how to …

  6. Java Bitwise and Shift Operators (With Examples) - Programiz

    There are 7 operators to perform bit-level operations in Java. 1. Java Bitwise OR Operator. The bitwise OR | operator returns 1 if at least one of the operands is 1. Otherwise, it returns 0. The …

  7. Bitwise Operator in Java - Tpoint Tech

    There are six types of bitwise operators in Java: Let's explain the bitwise operator in detail. It is a binary operator denoted by the symbol &. It returns 1 if and only if both bits are 1; else it …

  8. Difference between bitwise inclusive or and exclusive or in java

    Apr 16, 2015 · BITWISE INCLUSIVE OR (|) means normal or operation , BITWISEE ExCLUSIVE OR (^) means xor operation

  9. Using Operators in Your Programs - Dev.java

    The bitwise | operator performs a bitwise inclusive OR operation. The following program, BitDemo, uses the bitwise AND operator to print the number "2" to standard output.

  10. Java Bitwise Operators

    Java has bitwise operators for the integer types: long, int, short, char, and byte. The bitwise operators work on the individual bits of the operands. Java bitwise operators are summarized …

Refresh