Q. What will be the output of the following Java program?
Code:class bitwise_operator
{
public static void main(String args[])
{
int var1 = 42;
int var2 = ~var1;
System.out.print(var1 + " " + var2);
}
}
β
Correct Answer: (C)
42 -43