Answer : D

Explanation : Java allows you to use ~ operator for integer type variables. The simple way to calculate is ~i = (- i) - 1.