Java-Bitwise NOT

Bitwise NOT( ~ ) The Bitwise NOT is represented by the symbol (~) . Bitwise NOT is an unary operator and inverts all the bits represented by its operand. That is, 0s become 1s and 1s become zero. Program Program Source public class Javaapp { public static void main(String[] args) { byte a = 3; byte b = … Read more…