Home » Java Programming » Operators and Assignments

Which two statements are equivalent? 16*4 16>>2 16/2^2 16>>>2

Correct Answer: 2 and 4

Explanation:

(2) is correct. 16 >> 2 = 4


(4) is correct. 16 >>> 2 = 4


(1) is wrong. 16 * 4 = 64


(3) is wrong. 16/2 ^ 2 = 10


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion