Determine whether number is odd or even without using conditional code

Viewed 26401

How to find whether a number is odd or even, without using if condition or ternary operators in Java?

This question is given by my teacher. He also give me a hint that it is possible by using a bitwise operator.

12 Answers
Related