Q102
What will be the output of the following Java program? class bitwise_operator public static void main(String args[]) int var1 = 42; int var2 = ~var1; System.out.print(var1 + " " + var2);
A.
42 42
B.
43 43
C.
42 -43
AnswerD.
42 43
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board