Calculate Bitwise OR of two integers from their given Bitwise AND and Bitwise XOR values | Java program to implement the above approach ; Function to calculate Bitwise OR from given bitwise XOR and bitwise AND values ; Driver Code
class GFG { static int findBitwiseORGivenXORAND ( int X , int Y ) { return X + Y ; } public static void main ( String [ ] args ) { int X = 5 , Y = 2 ; System . out . print ( findBitwiseORGivenXORAND ( X , Y ) ) ; } }