Determine the output class Opbitwise
public static void main(String args[])
(
int first-11&9,
int second-first ^3,
System.out println(second | 12)
3
)
Options
14
8
7
1
Answers
Answered by
0
Answer:
option 1 (14) I hope it helps you
Answered by
0
Answer:
Option 14 is the correct answer for this question.
Explanation:
- When both bits are 1, the & operator yields a 1 bit. The & operation yielded a score of 9. When exactly one bit is 1, the operator creates a 1 bit; the outcome of this operation is 10.
- When at least one bit is 1, the | operator creates a 1 bit; the outcome of this operation is 14.
#SPJ3
Similar questions