Multiple choice technology programming languages

public class e { public static void main(String args[]) { int i=3,j=2; System.out.print("i|j="+ (i|j)); } }

  1. i | j = 3

  2. i | j = 2

  3. Compile Time Error

  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The | operator performs bitwise OR. With i=3 (binary 011) and j=2 (binary 010), the bitwise OR produces 011|010 = 011, which equals decimal 3, resulting in output i|j=3.