0

Write a program in Java to find the result of following expression (Assume a = 10, b = 5) i) (a < < 2) + (b > > 2)

How can I solve the above expression in Java.

18th Sep 2023, 10:38 AM
Shahjad Ansari
Shahjad Ansari - avatar
2 Réponses
+ 2
Shahjad Ansari You can use bitwise left shift << and right shift >> operators to perform bitwise operations on integers.
18th Sep 2023, 10:41 AM
JAY
JAY - avatar
0
i) means just exercise one
19th Sep 2023, 7:41 PM
zemiak