Examveda
Examveda

What will be the output of the following Java program?
class bitwise_operator 
{
    public static void main(String args[]) 
    {    
         int a = 3;
         int b = 6;
   int c = a | b;
         int d = a & b;             
         System.out.println(c + " "  + d);
    } 
}

A. 7 2

B. 7 7

C. 7 5

D. 5 2

Answer: Option A


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators